Advertisement
Guest User

Untitled

a guest
May 20th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. a = '8' * 68
  2. while '888' in a or '222' in a:
  3. if '222' in a:
  4. a = a.replace('222', '8')
  5. else:
  6. a = a.replace('888', '2')
  7. print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement