Python Forum
if elif problem :) - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: if elif problem :) (/thread-17747.html)



if elif problem :) - Runer - Apr-22-2019

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 ?


RE: if elif problem :) - buran - Apr-22-2019

Please, read Multiple expressions with or keyword


RE: if elif problem :) - Runer - Apr-22-2019

Okey ty for the help fixed :D