lundi 10 mai 2021

string contain either one of two numbers

I'd like to perform an if condition if a specific list item contains either one out of several numbers:

if firststring[1] == 100 or 40 or 80 or 67:
    print('hallo')

Does this code make sense?

Aucun commentaire:

Enregistrer un commentaire