Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Fibonacci Sequence Python

startNumber = int(raw_input("Enter the start number here "))
endNumber = int(raw_input("Enter the end number here "))

def fib(n):
    if n < 2:
        return n
    return fib(n-2) + fib(n-1)

print map(fib, range(startNumber, endNumber))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Fibonacci #Sequence #Python
ADD COMMENT
Topic
Name
8+5 =