Hello. The textbook provides a mental experiment:
What will this code return?
def fib(x): if x == 0 or x == 1: return 1 else: return fib(x - 1) + fib(x - 2) print(fib(4)) The code returns:
five
But after 4 iterations, 'x' takes the value 1! Why does the return fail and the unit does not return, completing the function?

xvalues in the process and see for yourself. - PinkTux