there is a problem, holp someone could help me,thanks

2011-08-24 Thread kangshufan
Hi everyone I just study python for a few time. Now I have a problem and I holp someone can help me. There is a piece of code: def fib(x): if x==0 or x==1: return 1 else: return fib(x-1) + fib(x-2) Could you explain how it works? Thanks for you help. Vince -- http://mail.python.org/mai

Re: Learning Python

2011-08-24 Thread kangshufan
Hi all could some one help me? there is a piece of code: def fib(x): if x==0 or x==1: return 1 else: return fib(x-1) + fib(x-2) Could some one explain it for me? I can't understand how it works. -- http://mail.python.org/mailman/listinfo/python-list