mardi 27 mai 2014

Calling an inputted function


Vote count:

0




I've been stuck on this for a few days now.. I am trying to call upon a function which is..



def askedQuestion(answer):
reply = ""
while reply.lower() != "yes" and reply.lower() != "no":
reply = input(answer)
return reply


my goal is to have it ask if one would like to participate in a car show, and show the message of their answer whether it be "yes" or "no" and then exit. Any help or just way of doing this would be greatly appreciated.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire