import numpy as np x1 = [False,7,0,4,5] x2 = [9,True,False,8,1] print(np.logical_and(x1,x2))
np.logical_or(foo < 40, foo > 60)