Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count in python

a = 'have a nice day'
symbol = 'abcdefghijklmnopqrstuvwxyz'
for key in symbol:
    print(key, a.count(key))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #python
ADD COMMENT
Topic
Name
1+3 =