DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit