Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

letter frequency counter python

text = input()
dict = {}
lis = [] 
for ch in text: 
    lis += [f"{ch}"] 
    dict[f"{ch}"] = lis.count(ch) 
print(dict)
 
PREVIOUS NEXT
Tagged: #letter #frequency #counter #python
ADD COMMENT
Topic
Name
7+6 =