Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- message = str(input())
- cnt = 1
- x = 1
- j = message[x:x+1]
- for x in message:
- if x in j:
- cnt += 1
- else:
- print(x, end='')
- print(cnt, end='')
- cnt = 1
- x += 1
- j = message[x:x+1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement