I have the following list:
l = [["a", "done"], ["c", "not done"]]
If the second element of each sub list is "done" I want to remove that the sub list. So the output should be:
l = [["c", "not done"]]
Obviously the below doesn't work:
for i in range(len(l)):
if l[i][1] == "done":
l.pop(0)