I am trying to iterate through a list of strings and remove any which contain an open parentheses.
'''
counter = 0
for i in self.command_list:
if i.find("(") != -1:
self.command_list.pop(counter)
counter = counter + 1
'''
The if statement properly identifies if a string contains an open parentheses so why isn't pop working?