Creating 3d Matrix || Python

 

In this we are going to see a program on Creating 3d Matrix in Python Programming Language.


import numpy as np

array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
new_array = array.reshape(3, 3)
print(new_array)

# Coded By Dhiraj Shelke

#ENJOY CODING


Post a Comment

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

Previous Post Next Post