I want to delete certain words from a paragraph, such as "and", "as", and "like". Is there an easier way to delete words from a string than doing it via replace --
new_str = str.replace(' and ', '').replace(' as ', '').replace(' like ', '')
For example, is there a method similar to the following?
str.remove([' and ', ' like ', ' as '])