0 like 0 dislike
100 views
in Examples, Exercises and Projects by Goeduhub's Expert (7.8k points)

Input    : aaaabbBcddee

Output : a4b2B1c1d2e2

1 Answer

0 like 0 dislike
by Goeduhub's Expert (7.8k points)
 
Best answer

a=input()

b=''"

for i in a:

if i not in b:

b=b+i

b=b+str((a.count(i)))

print(b)

...