[Tutor] Function problem
keridee at jayco.net
Sun Nov 7 02:50:25 CET 2004
I would probably do something that was suggested a little while ago on
ask = raw_input("Give me something like yes or no. ")
ask = ask.lower()
li = ['y','ye','yes','yep','affirmative','okay','alright'] # etc.
if ask in li:
print "You typed in something that meant yes. "
print "You typed in something that means no or something that I don't
More information about the Tutor