dxnge

tsk 3

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