How can i write a python program that shows the number of appearance of each letter in a string collected from user? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i write a python program that shows the number of appearance of each letter in a string collected from user?

Python

22nd Nov 2019, 12:15 PM
Rilwanu Sulaiman
Rilwanu Sulaiman - avatar
2 Answers
+ 2
Dear programmer, Python has a built - in function of counting letters in a string. Use: your_string.count (letter)
22nd Nov 2019, 7:38 PM
Rustam
Rustam - avatar
0
Thank you Rustam
24th Nov 2019, 8:50 PM
Rilwanu Sulaiman
Rilwanu Sulaiman - avatar