Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- a = list(itertools.product("ЛЕТО", repeat=4))
- cnt = 0
- for i in a:
- s = "".join(i)
- if s.count('Е') > 0:
- cnt += 1
- print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement