Advertisement
Apauldin

42

Nov 19th, 2021 (edited)
916
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import itertools
  2.  
  3. a = list(itertools.product("ЛЕТО", repeat=4))
  4. cnt = 0
  5. for i in a:
  6.     s = "".join(i)
  7.     if s.count('Е') > 0:
  8.         cnt += 1
  9. print(cnt)
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement