Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = '8' * 68
- while '888' in a or '222' in a:
- if '222' in a:
- a = a.replace('222', '8')
- else:
- a = a.replace('888', '2')
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement