Skip to main content

Python program to get the Fibonacci series of given range


a=0
b=1

limit=int(input("Enter value to get fibonacci series: "))

for i in range(1,limit+1):
    ser = a + b
    print(ser,end=', ')
    a=b
    b=ser

Comments