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?
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?