python recursive function

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Jan 11 18:21:48 EST 2008


On Fri, 11 Jan 2008 06:30:04 -0600, Nick Craig-Wood wrote:

> HYRY <ruoyu0088 at gmail.com> wrote:
>>  def bears (n):
>>      if n==42:
>>          return True
...
>>      return False
> 
> Almost but you missed a case...

Why are you people doing the OP's homework for him? And then DEBUGGING it 
as well? Haven't you got something better to do than to help create a new 
generation of incompetent, under-educated programmers?




-- 
Steven



More information about the Python-list mailing list