I have a list of tuples, all contain 1 phrase and 1 number.
Example: [('light blue', 3), ('light green', 4), ('blue shade', 2), ('deep red', 3), ('dark red')]
I would like to remove tuples from the list which contain certain words.
So let's say I would like to remove tuples containing 'blue' or 'dark in the phrase. How can I do this?
I tried this, but didn't work:
for x in Example:
if 'blue' in x[0] or 'dark' in x[0]:
Example.remove(x)