[Tutor] why does this not work
Roelof Wobben
rwobben at hotmail.com
Tue Apr 23 21:39:51 CEST 2013
Im trying to learn python by a course at codeacademy. Now I have this code : def shut_down(s):
s = s.lower()
if s == "yes":
return "Shutting down..."
elif s == "no" :
return "Shutdown aborted!"
else:
return "Sorry, I didn't understand you"
But when I run it I see this message: It looks like output other than yes/no does not return
"Sorry, I didn't understand you." So can anyone explain to me what I did wrong. Roelof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130423/d71bbc0d/attachment.html>
More information about the Tutor
mailing list