How to print a matrix in Python

Printing a matrix displays a two-dimensional list in matrix format.

Solution for How to print a matrix in Python : You can use numpy.array() to print a matrix Call numpy.array(object) to get a NumPy array containing each row and column of the two-dimensional list object.


how-to-print-a-matrix-in-python