grid = [[0, 0, 0], [0, 1, 0], [0, 0, 0]]

flat = [value for row in grid for value in row]
print(flat)

[0, 0, 0, 0, 1, 0, 0, 0, 0]