Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open('24-2.txt').read()
- ltrs = [x[1] for x in zip(f, f[1::], f[2::]) if x[0] == 'X' and x[2] == 'Z']
- cnt = [[str(ltrs.count(i)),i] for i in 'QWERTYUIOPASDFGHJKLZXCVBNM']
- print(max(cnt)[1] + max(cnt)[0])
Advertisement
Add Comment
Please, Sign In to add comment