Please write a function to compute the Fibonacci sequence until a given number via input paramters.


Topic: Please write a function to compute the Fibonacci sequence until a given number via input paramters.

Solution

def fibo(n):
    if n == 0: return 0
    elif n == 1: return 1
    else: return f(n-1)+f(n-2)



List all Python Programs