Advertisement
Farz0l1x

Untitled

Apr 17th, 2024
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. from itertools import  *
  2. count = 0
  3. for p in product('КРОТ', repeat = 6):
  4.     n = ''.join(p)
  5.     if n.count('О') == 1:
  6.         count += 1
  7.         print(n)
  8. print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement