Python 2.7 dictionary | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Python 2.7 dictionary

If the input is "aaaabbaaabbbbbcccd" the output should be 4a2b3a5b3c1d. (Warning: for counting the occurrence of each letter, you must use a dictionary)

3rd Jan 2018, 1:48 PM
Umer Selmani
Umer Selmani - avatar
1 Resposta
3rd Jan 2018, 5:06 PM
KƤzĆ® MrĆ®dĆ¹l HĆøssƤƮn
KƤzĆ® MrĆ®dĆ¹l HĆøssƤƮn - avatar