I wanna delete all zero elements from a nested list. But they are not removed!
FuzzyYesNo_nest=[ ['y', 'y', 'y', 'n', 'n', 'n', 'y', 0, 0, 0, 0, 0],
['n', 'n', 'n', 'n', 'y', 'n', 'n']]
for i in FuzzyYesNo_nest:
try:
i.remove(0)
except:
pass
can u see what is the problem?