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