Python Forum

Full Version: if elif problem :)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi i am starting coding and i got this problem
#* This is the code
right_name = input("is your right name " + right_name " yes / no ? ")
if right_name == "y" or "YES" or "yes":
    print("We go to the next")
elif right_name == "no" or "No" or "NO" or "no" or "n":
    print("We will return now ")
else:
    print("Error !")
#* What is the problem i always get a right name and go to the if ?
Okey ty for the help fixed :D