My Project
fibonacci.py File Reference

Calculates the Fibonacci number of a inputted real positive number. More...

Functions

def fibonacci.fib (idx)
 This function calculates a Fibonacci number at a specific index. More...
 

Variables

bool fibonacci.run = True
 
tuple fibonacci.idx = (input("Input a positive real index for a desired Fibonacci number: "))
 

Detailed Description

Calculates the Fibonacci number of a inputted real positive number.

Implements a Bottom Up Approach to calculate the desired Fibonacci number after the user has inputted a real, positive number. The link to the code can be found here: https://bitbucket.org/mzaman01/me305_labs/src/master/Lab%201/fibonacci.py

Author
Maisha Zaman
Date
January 21, 2021

Function Documentation

◆ fib()

def fibonacci.fib (   idx)

This function calculates a Fibonacci number at a specific index.

Parameters
idxAn integer specifying the index of the desired Fibonacci number
Returns
The Fibonacci number at the specified index