ME 305 Website by Cole Sheedy
fibonacci.py File Reference

Simple Fibonacci number enumerator. More...

Functions

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

Variables

 fibonacci.idx = input ('Fibonacci Index Number: ')
 'idx' is the index for which one wants a Fibonacci number.
 

Detailed Description

Simple Fibonacci number enumerator.

The program should be able to handle positive and negative numbers, decimals, and non-numbers accordingly. Source code here: https://bitbucket.org/ColeSheedy/me-305-work-repository/src/master/LabWork/Lab1/fibonacci.py

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 desired Fibonnaci number at the inputted index.