logical operators in numpy code example Example: numpy and operator np.logical_or(foo < 40, foo > 60)