my list has a bunch of zeros in it that I want to delete.
for i in widthList:
if widthList[i] ==0:
widthList.pop(i)
I tried using .pop() but I realize it removes the first digit thus the counter, "i" will be off.
my list has a bunch of zeros in it that I want to delete.
for i in widthList:
if widthList[i] ==0:
widthList.pop(i)
I tried using .pop() but I realize it removes the first digit thus the counter, "i" will be off.