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