Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

return count of substring in a string

The count() method returns the number of occurrences of a substring in the given string.
l='abcba'
l.count('a')
 
PREVIOUS NEXT
Tagged: #return #count #substring #string
ADD COMMENT
Topic
Name
7+8 =