Advertisement
Farz0l1x

Untitled

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