Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f1(x,y,z,w):
- return (w <= z) == (y <= x)
- def f2(x,y,z,w):
- return (w <= z) and (x != y)
- v= [0,1]
- print('x y z w F1 F2')
- for x in v:
- for y in v:
- for z in v:
- for w in v:
- F1 = f1(x,y,z,w)
- F2 = f2(x,y,z,w)
- #if F1 == 0 or F2 == 0:
- #print(x,y,z,w,int(F1),int(F2))
- if F1 == 0 and F2 == 1:
- print(x,y,z,w,int(F1),int(F2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement