>>> import numpy
>>> a = numpy.arange(2*3).reshape(2,3)
>>> a < 2
array([[ True,  True, False],
       [False, False, False]], dtype=bool)