## DESCRIPTION: Fibonacci Series is a series of numbers in which each number is the sum of two

#The main() function takes input from the user and displays the sequence def main(): number = int(input(" Enter the number until the sequence is displayed: ")) def fibonacci( n ): #if n is 1 or 2 , 1 is returned #Assuming the series begins with 1 first, second = 1, 1

preceding(previous) terms.The main function takes a number from the user and displays the

sequence till that number.

for i in range( n - 1 ) : first, second = second, first + second return first for i in range( 1, number + 1 ): print( fibonacci( i )) #it calls the main function if __name__ == "__main__": main() OUTPUT: Test case Enter the number until the sequence is displayed: 8 1 1 2 3 5 8 13 21

## Comments