Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open('1.txt')
- s = file.readline()
- s = s.replace('C', ' ').replace('D', ' ')
- s = s.split()
- print(len(max(s, key = len)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement