dxnge

4

Oct 13th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. from itertools import product
  2. def f(x, y, z):
  3.     return (not y) or (x and (not z))
  4. a = product([0,1], repeat=3)
  5. print(f'x y z 1')
  6. for x,y,z in a:
  7.     if f(x, y, z):
  8.         print(x, y, z, 1)
Advertisement
Add Comment
Please, Sign In to add comment