Numpy dan operator

np.logical_or(foo < 40, foo > 60)
Spotless Sloth