Вопрос в чём ошибка кода
import itertools

s = 'ЕНИСЕЙ'

a = list(itertools.product(s, repeat = 4))

с = 0

a = [x for x in a if x[0] != 'Й' and a.count('Е') >= 1 and a.count('И') >= 1]

c += 1

print(c)
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.