i'm just starting with python and i have a problem with my code
def vraag():
print "Hoi, hoe gaat het wat is je maam?"
naam = raw_input("Wat is je naam?")
global naam
global jaofnee
global Naam2
if naam == "Youp":
print "hallo Youp! jij bent de kjoelste"
elif naam != "Youp":
print "Dus je naam is %s?" % (naam)
jaofnee = raw_input("Vul in Ja of Nee.")
if jaofnee == "Ja" or "ja" or "J" or "j" or "Y" or "y":
print ("Oh, hallo %s") % (naam)
elif jaofnee == "Nee" or "nee" or "N" or "n":
Naam2 = raw_input("Wat is je naam dan?")
print "Oh, hallo %s" % (Naam2)
else:
print "ERROR, ONGELDIGE INPUT..."
vraag()
vraag()
but when i awnser ja after the elif it just starts from the beginning again and just displays Hoi, hoe gaat het wat is je naam. so pls help!
Aucun commentaire:
Enregistrer un commentaire