Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open ('24-157.txt') as f:
- s = f.readline()
- def gip(s):
- return s[0] == s[2]
- prin = filter(gip, zip (s, s[1:], s[2:]))
- smotr = tuple(map(lambda a: a[1], prin))
- bukv = sorted('QWERTYUIOPASDFGHJKLZXCVBNM')
- give = list(map(lambda t: smotr.count(t), bukv))
- maxi = max(give)
- print(bukv[give.index(maxi)] + str(maxi))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement