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