In [1]:
def fib(x):
if x == 0 or x == 1:
return 1
else:
return fib(x - 2) + fib(x - 1)
In [2]:
for i in range(11):
print(i,fib(i))
In [ ]: