NumPy > View number of array dimensions

Name
Code
Output
array = numpy.random.random((2,3))
print ("number of dimensions:",array.ndim)
number of dimensions: 2