Farz0l1x

Untitled

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