Numpy Attributes Python || 3D Array || Python
In this we are going to see a basic program on attributes of numpy array in Python Programming Language.


import numpy as np

i = 3
j = 4
k = 5

a = np.ones((i, j, k))

print("Array:\n",a)
print("\nDimensions: ", a.ndim)
print("Shape: ", a.shape)
print("Size: ", a.size)

# Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post