0
19kviews
Write a Python program to count the number of characters (character frequency) in a string.
1 Answer
written 2.5 years ago by |
Explanation:-
Code:-
n=input("Enter the String: ").lower()
s={}
for i in n:
if i in s:
s[i]+=1
else:
s[i]=1
print(s)
Output:-