Write a Python program to print shape of an array/ matrix


Topic: Write a Python program to print shape of an array/ matrix

Solution

import numpy as np
A = np.array([[1,2,3],[2,3,5],[3,6,8],[323,623,823]])
print("Shape of the matrix A: ", A.shape)



List all Python Programs