On 23 April 2013 21:17, Danny Yoo <d...@hashcollision.org> wrote: > Hi Roelof, > > On Tue, Apr 23, 2013 at 1:39 PM, Roelof Wobben <rwob...@hotmail.com> wrote: >> 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." > > > What inputs are you testing? What output do you get? > > You were doing fine, but summarized a little bit too much at the end.
I think that maybe the program is not running on the OP's computer but on the codeacademy website http://www.codecademy.com/#!/exercises/0 and that the message comes from the server that assesses the program. Oscar _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor