Liste des mots d'une chaîne et filtrez-les en fonction d'une liste secondaire

common_words = frozenset(("if", "but", "and", "the", "when", "use", "to", "for"))
title = "When to use Python for web applications"
title_words = set(title.lower().split())
keywords = title_words.difference(common_words)
print(keywords)
Horrible Hoopoe