Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open('4.txt')
- A = file.readline()
- ans = 0
- for x in 'QWERTYUIOPASDFGHJKLZXCVBNM1234567890':
- s = A.replace(x,' ')
- s = list(map(str, s.split()))
- ans = max(ans, len(max(s, key = len)) + 2)
- print(ans)
Advertisement
Add Comment
Please, Sign In to add comment