Adding through recursion

Simon Brunning simon.brunning at gmail.com
Fri Nov 18 09:37:49 EST 2005


On 18 Nov 2005 06:30:58 -0800, martin.clausen at gmail.com
<martin.clausen at gmail.com> wrote:
> I still don't get it. I tried to test with x = 0 and found that to
> work. How come since the value of y is right and it is printed right it
> "turns into" None when returned by the return statement ?

There is no return statement in your else block. That's where the
Nones are coming from.

--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list