returning None instead of value: how to fix?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sat Sep 23 17:13:01 EDT 2006


sam a écrit :
> i am starting to experiment with recursion, and decided to write a
> fairly trivial little program which took a float as input, then called
> a function to halve it recursively until it was less than 1:

And forgot to return the result from the recursive call, I guess ?-)



More information about the Python-list mailing list