2D array in pytho code example
Example 1: 2d array in python
from array import *
T = [[11, 12, 5, 2], [15, 6,10], [10, 8, 12, 5], [12,15,8,6]]
for r in T:
for c in r:
print(c,end = " ")
print()
Example 2: python print 2d array as table
import numpy as np
print(np.matrix(A))