Avatar ·

Comment vérifier si une chaîne contient un mot d'une liste ?

📁 liste, ligne, Sujets avancés sur Python, exemple

Par exemple, une liste

words = [""Авто"", ""Велосипед"", ""Самолет""]

Et par exemple une chaîne

str = ""Быстрый автомобиль""

Il faut retourner True, car la chaîne contient ""авто""