dxnge

5

Oct 30th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. from itertools import product
  2. words = product('АБВГДЯ', repeat=5)
  3. srt = (x for x in words if x.count('Я') == 3)
  4. print(len([*srt]))
Advertisement
Add Comment
Please, Sign In to add comment