I want to recognize if the words from a list are in an input string, and if so remove that word.
I have tried:
words = ["youtube","search youtube","play music"]
Inp = "search youtube Rockstar"
if words in Inp:
Inp = Inp.replace(words,"")
And the wanted output is:
Inp = "Rockstar"