Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('24 (1).txt') as f:
- cur_cnt, cnt = 0, 0
- while a := f.read(1):
- if a in map(str, range(10)):
- if cnt < cur_cnt:
- cnt = cur_cnt
- cur_cnt = 0
- else:
- cur_cnt += 1
- print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment