class documentation
class FibonacciProgression(Progression):
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 |
Print next n values of the progression. |