+ 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)
1 Odpowiedź
If the input is "aaaabbaaabbbbbcccd" the output should be 4a2b3a5b3c1d. (Warning: for counting the occurrence of each letter, you must use a dictionary)