python matrix print code example Example: how to print a matrix in python import numpy as np print(np.matrix(A))