""" fib(n) returns the nth number in the fibonacci series """ def fib(n): """ fib(n) returns the nth number in the fibonacci series using a simple recursive approach""" return 1 if n < 3 else fib(n-1) + fib(n-2)