python nupmy element wise and code example Example: numpy and operator np.logical_or(foo < 40, foo > 60)