№8 from itertools import product alph = 'ЕИОРТЯ' k = 1 for x in product(alph, repeat=6): x = ''.join(x) if x[0] not in 'ЕОР' and x.count('Т') == 1: print(k, x) k += 1
№8 from itertools import product alph = 'ЕИОРТЯ' k = 1 for x in product(alph, repeat=6): x = ''.join(x) if x[0] not in 'ЕОР' and x.count('Т') == 1: print(k, x) k += 1