python 2 use dimensional array 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
for row in A:
for val in row:
print '{:4}'.format(val),
print