Advertisement
vadim_sharaf

Untitled

Oct 5th, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. with open ('24-157.txt') as f:
  2.       s = f.readline()
  3. def gip(s):
  4.       return s[0] == s[2]
  5. prin = filter(gip, zip (s, s[1:], s[2:]))
  6. smotr = tuple(map(lambda a: a[1], prin))
  7. bukv = sorted('QWERTYUIOPASDFGHJKLZXCVBNM')
  8. give = list(map(lambda t: smotr.count(t), bukv))
  9. maxi = max(give)
  10. print(bukv[give.index(maxi)] + str(maxi))
  11.  
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement