ahmar-js / Fibonacci-Series

Python program to create Fibonacci series using generator function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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,…)

About

Python program to create Fibonacci series using generator function

License:MIT License


Languages

Language:Python 100.0%