2d listsin python code example
Example 1: 2d array python
array = [[value] * lenght] * height
//example
array = [[0] * 5] * 10
print(array)
Example 2: python print 2d array as table
for row in A:
for val in row:
print '{:4}'.format(val),
print