I have 3 lists, radius, x, and y. Each one is the same length. I want to delete the 'i'th item from each list if the 'i'th item in radius is equal to 0. Below is the code I am trying to use, but for some reason is not working. Thank you in advance!
for i in range(len(radius)):
if radius[i]==0:
radius.remove(i)
x.remove(i)
y.remove(i)