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