How Often Each Letter Appears
Programs with input · Intermediate · about 8 min
Read a word made of letters only. Print each different letter with how many times it appears, one per line as a: 3, in the order the letters first appear in the word. Capital and small letters count as the same letter: print them as small letters.
The prompts inside input() are not checked, only what you print.
Example
You type:
bananaThe program prints:
b: 1 a: 3 n: 2
word = input("Word: ")
# Count each letter and print the counts
The solution opens after your first Check.