Recursion function in Python

后端 未结 10 2173
庸人自扰
庸人自扰 2020-12-15 11:52

Consider this basic recursion in Python:

def fibonacci(number):
    if number == 0: return 0
    elif number == 1:
        return 1
    else:
        return          


        
10条回答
  •  情深已故
    2020-12-15 12:23

    I would really recommend that you put your code in the Python tutor.

    You will the be able to get it on the fly. See the stackframe, references, etc.

提交回复
热议问题