Category Archives: String count

Python string count() method.

In this article we are going to learn python string count() method which is associated with python string data type. Python string count method is used to count the number of occurrences of sub-string in a string. Basically it counts the number of overlapping occurrences of a sub-string. It searches the sub-string in a given string and returns how many times the sub-string is repeated. String count method in python is useful to find out how many times a specific character or a word or a

Read More