You're missing a dot (.) *Sorry, I didn't understand you.*
- Karan Goel ---------------------------- The Real Reason Things Keep Going Wrong: At the beginning of time, God set a Magic Top Spinning... and spinning... and spinning... and spinning... and spinning... and spinning... and spinning... After a few hundred million years God got bored and gave the top a good kick; so it went rebounding away, flinging off planets and stars and dinosaurs, and later, people who wrote about dinosaurs. Then God realized that although Order and Regularity are virtuous, if you want interesting stories, now and then you have to give things a good Kick! This explains a lot. On Tue, Apr 23, 2013 at 12: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." > > So can anyone explain to me what I did wrong. > > Roelof > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > >
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor