python fiboncci code example
Example 1: code fibonacci python
# Program to display the Fibonacci sequence forever
def fibonacci(i,j):
print(i;fibonacci(j,i+j))
fibonacci(1,1)
Example 2: python fiboncci
n = int(input("say the nth term of the Fibonacci Series"))
a,c = 0,0
b = 1
for ele in range(0,n):
print(a,end=' ')
c = a + b
a = b
b = c