import numpy as np
y = [1.25, 2.59, -4.87, 6.82, -7.98, -11.23]
if(np.any(y) < -10):
print("yes")
I want to check whether in a list any value below or above a particular value exists or not. So, I proceed with np.any(), code is getting compiled but not working as wished, I mean not printing back "yes".