Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count function in python

>>> sentence = 'Mary had a little lamb'
>>> sentence.count('a')
4
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #function #python
ADD COMMENT
Topic
Name
7+6 =