def fib(n):
    """ Fibonacci sequence:
        f_n  = f_(n-1) + f_(n-2); with f_0 = 0, f_1 = 1
        Uses iteration to solve
    """
    a, b = 0, 1
    for i in range(n):
        a, b = b, a + b
    return a