my_array = list() for x in range(height): my_array.append([0] * width)