Search
 
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
Name
4+1 =