[Tutor] recursion surprise
Jim Mooney
cybervigilante at gmail.com
Sun Jun 9 02:25:41 CEST 2013
On 8 June 2013 17:10, Don Jennings <dfjennings at gmail.com> wrote:
As Dave pointed out, the function ends, and implicitly returns None
since you didn't tell it to return anything else. Does that help?
>
> Take care,
> Don
>
Yes, I see it now. My return num just returned to the previous
function call, but I need a final return to return to print. I was
probably misremembering something from javascript when I was just
hacking it in as needed, when I was webmastering.
--
Jim
More information about the Tutor
mailing list