ответ: 256
import itertools
letters = 'Б, Е, Л, К, А'.split(', ')
count = 0
for i in itertools.product(letters, repeat=4):
if i.count('Б') == 1:
count += 1
print(count)
ответ: 256
import itertools
letters = 'Б, Е, Л, К, А'.split(', ')
count = 0
for i in itertools.product(letters, repeat=4):
if i.count('Б') == 1:
count += 1
print(count)