So this is my array:
field = [[1, 2, 4, 4],
[4, 1, 4, 2],
[2, 1, 4, 3],
[2, 4, 2, 3],
[1, 2, 3, 4]]
and if i have following coordinates:
co= [(0, 1),
(1, 1),
(2, 1)]
In this case my new array should look like:
[[1, 4, 4],
[4, 4, 2],
[2, 4, 3],
[2, 4, 2, 3],
[1, 2, 3, 4]]
anyone has any idea how ? I have managed to get just numbers that have to be deleted but its not what i want.. Note: It has to be made for field array of x length and same with coordinates.
Thanks for help!
for (x, y) in co: del field[x][y](that would be python)