filmov
tv
ep3 - [Python] String Encode

Показать описание
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
would be represented by interger and the symbol.
Input : AAAABBBCCDAAA
Output : 4A3B2C1D2A
Input : PHP
Output : 1P1H1P
Input : CCoding
Output : 2C1o1d1i1n1g
Link