Advertisement
Pastehsjsjs

Untitled

Jul 17th, 2023
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from itertools import product
  2.  
  3. letters = sorted(list(set(i for i in '«ЕГЭ - ЭТО ЗЛО, БОТАЙТЕ ВСЕРОС»' if i.isalpha())))
  4. idx = 0
  5. for i in product(letters, repeat=5):
  6. i = ''.join(i)
  7. idx += 1
  8. if idx % 2 != 0 and i[:2] != 'ЕГЭ' and i.count('Е') <= 1 and i.count('Г') <= 1 and i.count('Э') <= 1:
  9. index = idx
  10. print(index)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement