On 18 Nov 2005 06:30:58 -0800, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> 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,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to