# [Type C]Q8. Write a python program that creates a tuple storing first 9 terms of the Fibonacci series.

Fibonacci series is a series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers.

The simplest is the series 1, 1, 2, 3, 5, 8, etc.

`    Fn = Fn-1 + Fn-2`

Program code:

Clear Doubts with Computer Tutor
In case you’re facing problems in understanding concepts, writing programs, solving questions, want to learn fun facts | tips | tricks or absolutely anything around computer science, feel free to join CTs learner-teacher community: students.computertutor.in

Output:

`(1, 1, 2, 3, 5, 8, 13, 21)`

Get. the length of the Fibonacci series as input from the user and keep it inside a variable.

Send the length as a parameter to our recursive method which we named as the make_fibonnaci().

We are calling the recursive function inside a for loop which iterates to the length of the Fibonacci sequence and prints the result in the tuple.

Basic python functionality is demonstrated in above program.

To view all the lessons in chapter 1: http://computertutor.in/class-12-computer-science/chapter-2/

To view entire class 12 computer science study material: http://computertutor.in/resources/