dxnge

13

Oct 13th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from itertools import product
  2. a = map(''.join, product('НИКОЛАЙ', repeat=4))
  3. words = []
  4. for i in a:
  5.     if i[0] != 'Й' and ('И' in i or 'О' in i or 'А' in i):
  6.         words.append(i)
  7. print(len(words))
Advertisement
Add Comment
Please, Sign In to add comment