Advertisement
Farz0l1x

Untitled

Mar 23rd, 2024
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. file = open('3.txt')
  2. s = file.readline()
  3. for x in 'qwertyuiopasdfghjklzxcvbnm':
  4.     s = s.replace(x, ' ')
  5. s = s.split()
  6. print(len(max(s, key = len)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement