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