Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import product
- print("a b c d")
- for t in product((0,1), repeat=4):
- a,b,c,d = t
- F = ((not(a)) and (not(b))) or (b == c) or d
- if not(F):
- print(a,b,c,d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement