1array = [[value] * lenght] * height
2
3//example
4array = [[0] * 5] * 10
5
6print(array)
1# 2D arrays in python can be used to create rudimentary games
2
3array_2d = [['row0, column0'], ['row0, column1'], ['row0, column2'],
4 ['row1, column0'], ['row1, column1'], ['row1, column2'],
5 ['row2, column0'], ['row2, column1'], ['row2, column2']]
6
1# 2D array that is 3x4 (3 columns, 4 rows)
2# note that it is essentially an array of lists
3arr = [
4 [11, 12, 5],
5 [15, 6, 10],
6 [10, 8, 12],
7 [12, 15, 8]
8 ]