ep3 - [Python] String Encode

preview_player
Показать описание
Write a program that takes a string and encode it that the amount of symbols
would be represented by interger and the symbol.

Input : AAAABBBCCDAAA
Output : 4A3B2C1D2A

Input : PHP
Output : 1P1H1P

Input : CCoding
Output : 2C1o1d1i1n1g

Link
Рекомендации по теме
welcome to shbcf.ru