class documentation

class ArithmeticProgression(Progression):

View In Hierarchy

Iterator producing an arithmetic progression.

Method __init__ Create a new arithmetic progression.
Method _advance Update current value by adding the fixed increment.
Instance Variable _increment 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.
Instance Variable _current Undocumented
def __init__(self, increment=1, start=0):

Create a new arithmetic progression.

increment the fixed constant to add to each term (default 1) start the first term of the progression (default 0)

def _advance(self):

Update current value by adding the fixed increment.

_increment =

Undocumented