I have a list of lists as follows :
g = [
    ["a","?","?","?","?","?","?"],
    ["?","b","?","?","?","?","?"],
    ["?","?","?","?","?","?","?"]
]
I want to iterate through this list and delete the list which contains all "?", which is the last list in this list of lists. I've tried pop() , del and several other operation but nothing seems to be working so far.
Here's what I've written for this part :
for x in g:
    if x.count("?") == 6:
        g.pop(g.index(x))
It doesn't remove the list but removes one "?" from the last list. Can anyone please guide me here.
 
     
     
     
     
     
     
    