dxnge

16

Sep 30th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. with open('24.txt') as f:
  2.     a = f.readline()
  3. n = (''.join(map(lambda x,y: x if x < y else x + ' ', a, a[1:]))).split()
  4. num = list(map(len, n))
  5. print(n[(num.index(max(num)))], max(num))
Advertisement
Add Comment
Please, Sign In to add comment