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