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