aboutsummaryrefslogtreecommitdiff
path: root/comparison/Python/fib38.py
blob: efa538087cc13d1dd9c44290164926f9b10262b8 (plain) (blame)
1
2
3
4
5
6
7
8
def fib(n):
    if n == 0:
        return 0
    elif n == 1:
        return 1
    else:
        return fib(n-1) + fib(n-2)
print(fib(38))