0 like 0 dislike
ago in Examples, Exercises and Projects by (7k points)

Input    : aaaabbBcddee

Output : a4b2B1c1d2e2

1 Answer

0 like 0 dislike
ago by (7k 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)

Register fast for winter training program at Goeduhub Technologies. We are providing winter training in AI-ML, IoT, Python, Hadoop and PLC-SCADA.

[[ CALL - 07976731765 ]]

...