On Fri, 11 Jan 2008 06:30:04 -0600, Nick Craig-Wood wrote: > HYRY <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list