class documentation

class FibonacciProgression(Progression):

View In Hierarchy

Iterator producing a generalized Fibonacci progression.

Method __init__ Create a new fibonacci progression.
Method _advance Update current value by taking sum of previous two.
Instance Variable _current Undocumented
Instance Variable _prev Undocumented

Inherited from Progression:

Method __iter__ By convention, an iterator must return itself as an iterator.
Method __next__ Return the next element, or else raise StopIteration error.
Method print_progression Print next n values of the progression.
def __init__(self, first=0, second=1):

Create a new fibonacci progression.

first the first term of the progression (default 0) second the second term of the progression (default 1)

def _advance(self):

Update current value by taking sum of previous two.

_current =
_prev =

Undocumented