list of two dimensions python code example
Example 1: 2d array python
array = [[value] * lenght] * height
//example
array = [[0] * 5] * 10
print(array)
Example 2: print 2d list in one line
import itertools
arr = [[1, 2, 3], [3, 4, 5]]
res = list(itertools.chain(*arr))
print(" ".join(map(str, res)))
1 2 3 3 4 5