Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open('11.txt')
- s = file.readline()
- for i in 'XYZ':
- while i + i in s:
- s = s.replace(i + i, i + ' ' + i)
- s = s.split()
- print(len(max(s, key = len)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement