Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import *
- count = 0
- for elem in product('БЕЛКА', repeat = 4):
- s = ''.join(elem)
- if s.count('Б') == 1:
- count += 1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement