mercredi 1 décembre 2021

About "if" using "or" in python [duplicate]

if champ == "Rek'sai" or "Reksai":
    .....
else:
    print("Please check the name")

I'm trying to use or in if but the else part dosen't work when I put the or. Is there others ways to fix this execpt using elif?

Aucun commentaire:

Enregistrer un commentaire