In [2]: import numpy as np In [4]: a = np.arange(10) a Out[4]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) In [6]: a > 5 Out[6]: array([False, False, False, False, False, False, True, True, True, True]) Any&All In [8]: np.any(a>5), np.any(a5), np.all(a test_b Out[12]: array([False, True, False]) In [14]: test_a == test_b Out[14]: array([False, False, False]) In [16]: (test_a > test_b).any() Out[16]: T..