dxnge

Task 9

Sep 13th, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. with open('k7a-1.txt') as f:
  2.     a = f.readline()
  3.     a = a.replace('D', ' ')\
  4.     .replace('E', ' ')
  5. print(max(map(len,a.split())))
Advertisement
Add Comment
Please, Sign In to add comment