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

kangshufan at hotmail.com kangshufan at hotmail.com
Wed Aug 24 11:59:45 EDT 2011


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



More information about the Python-list mailing list