how to declare 2d arrayu python code example Example: 2d array python array = [[value] * lenght] * height //example array = [[0] * 5] * 10 print(array)