Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('24_demo.txt') as f:
- a = f.readline()
- a = a.replace('XYZ', '123').replace('123XY', '12312 ').replace('123X', '1231 ')\
- .replace('X', ' ').replace('Y', ' ').replace('Z', ' ')
- print(max(map(len, a.split())))
- #print(a)
Advertisement
Add Comment
Please, Sign In to add comment