Posts by Willian Silva • 1 point
1 post
-
0
votes3
answers92
viewsA: Counting letters in a string
You can also use a dictionary and go setting the keys and values, as you count the times when the letter contained in the word repeats in the sequence: txt = 'banana' dict = {} for n in txt: c =…
python-3.xanswered Willian Silva 1