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