np.array 2d code example
Example 1: 3d array in numpy
>>> a = np.zeros((2, 3, 4))
>>> a
array([[[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.]],
[[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.],
[ 0., 0., 0., 0.]]])
Example 2: 2d array python
array = [[value] * lenght] * height
//example
array = [[0] * 5] * 10
print(array)