NumPy > Arrays element-wise equality comparison

Name
Code
Output
array1 = numpy.random.randint(5, size=(2, 3))
print ("array1 \n",array1,)
array2 = numpy.random.randint(5, size=(2, 3))
print ("array2 \n",array2)
result = (array1 == array2)
print ("comparison result \n",result)
array1 
 [[0 4 1]
 [4 4 0]]
array2 
 [[3 4 1]
 [4 3 4]]
comparison result 
 [[False  True  True]
 [ True False False]]