Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open('8.txt')
- A = file.readline()
- for i in range(len(A)):
- if A[i] not in '1234567890':
- A = A.replace(A[i], ' ')
- A = list(map(str, A.split()))
- print(len(max(A, key=len)))
Advertisement
Add Comment
Please, Sign In to add comment