1 Program to create NumPy and Display type, length, dimensional and shape in Python

Program:

import numpy as np

array = np.array([10,20,30,40,50] , dtype=int)

print(array)

print(type(array))

print(len(array))

print(array.ndim)

print(array.shape)


Output:

Program to create NumPy and Display type, length, dimensional and shape in Python

Previous
Next Post »