Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

str count python

string.count(substring, start=..., end=...)

'recede'.count('e')
>>> 3
'recede'.count('e', 2, 4)
>>> 1
 
PREVIOUS NEXT
Tagged: #str #count #python
ADD COMMENT
Topic
Name
6+7 =