I'm trying to understand how remove zeros from an array.
i try this:
V = [[1,2,0,3,4,0,0,5,0,6,7,8,0,9,10]]
LV = (len(V),len(V[0]))
for i in range(0,LV[1]):
if V[0][i] == 0:
V.remove(V[0][i])
And I get this error:
ValueError: list.remove(x): x not in list
Any idea?