I am have a nested list with the following:
[['X', 0],
['X', 0],
['X', ''],
['X', '']]
for i in myList:
if i[1] == 0:
myList.remove(i)
This will only remove the first list. Output would be:
[['X', 0],
['X', ''],
['X', '']]
How can I get it for both?