[Tutor] python coding problem

Danny Yoo dyoo at hashcollision.org
Mon Sep 26 13:54:17 EDT 2016


Hi Richard,

The "return" statement does an early escape out of the currently
running function.

You have a "return" statement in your program that looks
unintentional.  In an ideal world, the Python compiler would give a
warning about this because it's a common mistake.  Unfortunately it
looks like Python doesn't do this.
Please feel free to ask followup questions to the mailing list.  Good luck!


More information about the Tutor mailing list