mercredi 19 octobre 2016

My If statements only choosing first option [duplicate]

This question already has an answer here:

So Heres My Code

while True:
    username = raw_input("Username:")
    time.sleep(1)
    print username
    qwerty = raw_input("Is this right?")
    if qwerty == 'yes' or "Yes" or "Yeah" or "yeah" or "yup" or "Yup":
        print "OK."
        break
    elif qwerty == 'no' or 'No' or 'nope' or 'Nope' or 'nah' or 'Nah':
        print "Please type your Username again"
        continue
    else:
        print "Please Try a more common answer"
        continue`

I Don't Know Whats wrong because what ever i type for the input it only comes out with the first Option. does anyone know why?

Aucun commentaire:

Enregistrer un commentaire