vadim_sharaf

Untitled

Oct 6th, 2021
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 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))
Advertisement
Add Comment
Please, Sign In to add comment