Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import *
- count = 0
- for p in product('КРОТ', repeat = 6):
- n = ''.join(p)
- if n.count('О') == 1:
- count += 1
- print(n)
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement