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