<gh_stars>0
# this is a python program to print fibonacci series
a = 0 
b = 1
length = int(input("Enter the number of elements upto which you want to print the Fibonacci Series: "))
if length == 1: #condition if user enters length as 1
    print(a)
elif length == 2: # condition if user enters length as 2
    print(a)
    print(b)
else:     
    print(a)
    print(b)
    for i in range(0, length-2): # printing length -2 as the first two digits 0 and 1 have been printed
        c = a + b # summing up the previously printed numbers to print the third
        print(c)
        a = b # swapping values
        b = c

    
# this is a python program to print fibonacci series
a = 0 
b = 1
length = int(input("Enter the number of elements upto which you want to print the Fibonacci Series: "))
if length == 1: #condition if user enters length as 1
    print(a)
elif length == 2: # condition if user enters length as 2
    print(a)
    print(b)
else:     
    print(a)
    print(b)
    for i in range(0, length-2): # printing length -2 as the first two digits 0 and 1 have been printed
        c = a + b # summing up the previously printed numbers to print the third
        print(c)
        a = b # swapping values
        b = c
# this is a python program to print fibonacci series #condition if user enters length as 1 # condition if user enters length as 2 # printing length -2 as the first two digits 0 and 1 have been printed # summing up the previously printed numbers to print the third # swapping values