- 1

Help me with this one

Given a string as input, you need to output how many times each letter appears in the string. You decide to store the data in a dictionary, with the letters as the keys, and the corresponding counts as the values. Create a program to take a string as input and output a dictionary, which represents the letter count. Sample Input hello Sample Output {'h': 1, 'e': 1, 'l': 2, 'o': 1}

20th Apr 2022, 4:26 PM
Mary Rian
Mary Rian - avatar
3 Answers
+ 3
Mary Rian , can you please link your try here? thanks!
20th Apr 2022, 4:35 PM
Lothar
Lothar - avatar
20th Apr 2022, 4:58 PM
Jayakrishna 🇼🇳
+ 1
https://code.sololearn.com/c6ILC8sv1ubT/?ref=app
21st Apr 2022, 4:59 AM
mohammed shibli
mohammed shibli - avatar