Skip to content

Gyanol

Gyan Online – PHP,Python,Jquery,Javscript,Ajax and More
  • Python Basics
  • PHP Basics
  • Javascript Basics
  • HTML basics

Tag: python count substring


Python Count the number of occurrence of a sub string in a string?

Python Count the number of occurrence of a sub string in a string?

Posted on July 28, 2020 by Srikant Padhi

Lets see how to find out the number of occurrence of a sub string in a string. Example: sentence=”This is a lovely day and this day could be your best day, if you smile” Count how many times the word ‘day’ (substring) is appearing in the above sentence (string) Solution 1 sentence=”This is a lovely […]

Read More




Recent Posts

  • How to split a string in python?
  • How to reverse a string in python?
  • How to write a comment in python ?
  • PHP: Remove Space at the end of string
  • PHP: Remove Extra Spaces around a string




Categories

  • Cloud Hosting
  • HTML basics
  • Javascript Basics
  • Javascript Problem Solver
  • PHP Basics
  • PHP MySQLi
  • PHP Problem Solver
  • Python Basics
  • Python Problem Solver
  • Python PyMySQL
  • Cloud Hosting
  • PHP Problem Solver
  • Python Problem Solver
  • Python PyMySQL
  • PHP MySQLi
  • Javascript Problem Solver
  • IFSC Code
  • Online Tools
  • Pincodes
  • Unicodes
  • Disclaimer
  • Contact us
  • Privacy Policy
  • Terms and Conditions

All Rights Reserved © Gyanol