/Fibonacci-Series

Python program to create Fibonacci series using generator function

Primary LanguagePythonMIT LicenseMIT

Fibonacci-Series Using Generator Function

List of Fibonacci numbers up to the number n which will pass to a function as an argument. The number n is input at runtime.

They are calculated using the following formula: The first two numbers of the series is always equal to 1, and each consecutive number returned is the sum of the last two numbers.

The first number in the series should be 1. (The output will start like 1,1,2,3,5,8,…)