Farz0l1x

Untitled

Mar 5th, 2024
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. file = open('8.txt')
  2. A = file.readline()
  3. for i in range(len(A)):
  4.     if A[i] not in '1234567890':
  5.         A = A.replace(A[i], ' ')
  6. A = list(map(str, A.split()))
  7. print(len(max(A, key=len)))
Advertisement
Add Comment
Please, Sign In to add comment