python recursive function
bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Jan 11 11:49:16 CET 2008
Duncan Booth a écrit :
> Bruno Desthuilliers <bruno.42.desthuilliers at wtf.websiteburo.oops.com>
>> You want:
>> return bears(n - 42)
> Actually, no he doesn't. He needs to explore all options when the first
> attempt fails.
Possibly - I didn't bother checking the algorithm correctness, just
pointed out an obvious newbie programming error.
> But I'm not going to write his homework for him.
Nor do I.
More information about the Python-list