Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = str(input())
- i = 0
- j = len(f)-1
- x = 0
- while i<=j:
- for x in range(x,j):
- p = 1
- a = f[x]
- x+=1
- b = f[x]
- while a==b:
- a=b
- x+=1
- b=f[x]
- p+=1
- print(a+str(p), end='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement