Answers for "fibonacci \"

1

fibonacci

def fibonacci(n):
    if n <= 1:
        return n
    else:
        return fibonacci(n-1) + fibonacci(n-2)

limit = int(input("Insert the number of the values of the series that you would see: "))

for num in range(1, limit+1):
    print(fibonacci(num))
Posted by: Guest on December-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language