# WARNING: this program assumes the# fibonacci sequence starts at 1deffib(num):"""return the number at index num in the fibonacci sequence"""if num <=2:return1return fib(num -1)+ fib(num -2)print(fib(6))# 8
>>>deffib(n):# write Fibonacci series up to n..."""Print a Fibonacci series up to n."""... a, b =0,1...while a < n:...print(a, end=' ')... a, b = b, a+b
...print()...>>># Now call the function we just defined:... fib(2000)011235813213455891442333776109871597
startNumber =int(raw_input("Enter the start number here "))
endNumber =int(raw_input("Enter the end number here "))deffib(n):if n <2:return n
return fib(n-2)+ fib(n-1)printmap(fib,range(startNumber, endNumber))