Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('24.txt') as f:
- a = f.readline()
- n = (''.join(map(lambda x,y: x if x < y else x + ' ', a, a[1:]))).split()
- num = list(map(len, n))
- print(n[(num.index(max(num)))], max(num))
Advertisement
Add Comment
Please, Sign In to add comment