dimanche 25 octobre 2020

How to check an input (variable) for more than one string in if statement? [duplicate]

Here is the code I have:

test99 = input("type in test")
if test99 != "test" or "test12":
    print("test4")
else:
    print(test99)

It outputs test4 no matter what I type in (even if I type in test) and I need a solution to make it check for multiple different words.

Aucun commentaire:

Enregistrer un commentaire