Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
One possible program:
text = input("Word: ").strip().lower()
frequency = {}
for char in text:
frequency[char] = frequency.get(char, 0) + 1
for char in frequency:
print(char, ":", frequency[char])