Adding through recursion

Simon Brunning simon.brunning at
Fri Nov 18 15:37:49 CET 2005

On 18 Nov 2005 06:30:58 -0800, martin.clausen at
<martin.clausen at> 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.

Simon B,
simon at,

More information about the Python-list mailing list