vérifiez si la chaîne contient python
>>> str = "Messi is the best soccer player"
>>> "soccer" in str
True
>>> "football" in str
False
comment vérifier une chaîne de caractères en cas de déclaration de python
if var in ('stringone', 'stringtwo'):
dosomething()