DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to count number of specific letter in python
print('Mary had a little lamb'.count('a')) #output = 4
Source by www.delftstack.com #
PREVIOUS
NEXT
Tagged:
#count
#number
#specific
#letter
#python
ADD COMMENT
Topic
COMMENT
Name
4+1 =
Submit