# Write a Python program to print rank of an array/ matrix

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

Solution

import numpy as np A = np.array([[4,5,8], [7,1,4], [5,5,5], [2,3,6]]) print("Rank of the matrix A: ", np.linalg.matrix_rank(A))

List all Python Programs