Farz0l1x

Untitled

Mar 23rd, 2024
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. file = open('2.txt')
  2. s = file.readline()
  3. s = s.replace('A', ' ').replace('B',' ').replace('C', ' ')
  4. s = s.split()
  5. print(len(max(s, key = len)))
Add Comment
Please, Sign In to add comment