0
20kviews
Write a Python program to count the number of characters (character frequency) in a string.
1 Answer
written 2.6 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:-