NumPy > Select part of 2D matrix

Name
Code
Output
array = numpy.random.randint(10, size=(4, 4))
print ("array \n",array)
print ("submatrix \n", array[0:2,0:2])
array 
 [[8 0 3 1]
 [4 8 9 7]
 [0 7 2 6]
 [2 7 4 3]]
submatrix 
 [[8 0]
 [4 8]]