Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import product
- s = set()
- for t in product("ГЕПАРД", repeat=5):
- st = "".join(t)
- if st[0] != "А" and st[-1] != "Е" and st.count("Г") == 1:
- s.add(st)
- print(len(s))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement