print 5x5 2d list python code example
Example 1: how to print a matrix in python
import numpy as np
print(np.matrix(A))
Example 2: python print 2d array as table
for row in A:
for val in row:
print '{:4}'.format(val),
print
Example 3: print 5x5 2d list python
1 2 3 4 5
6 7 8 9 10
1 3 5 0 8
4 9 2 4 1
7 9 3 7 1