I have a list, which is a split sentence. For instance:
['Hello', 'My', 'name', 'is', 'Python', 'and', 'I',
'make', 'life', 'easy', 'is', 'and', 'I', 'is']
I want to remove all occurrences of: 'is'
, 'and'
and 'I'
, in a single go.
How do I do this in the shortest way possible, by taking out them all in one go? And what if I wanted to take out all occurrences of 5 variables in one go? or 1000 in one go?
I get this is probably super hard. It hasn't been asked before....