[Tutor] Function problem
Jacob S.
keridee at jayco.net
Sun Nov 7 02:50:25 CET 2004
You know,
I would probably do something that was suggested a little while ago on
the list.
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. "
else:
print "You typed in something that means no or something that I don't
recognize. "
More information about the Tutor
mailing list