class documentation
class ArithmeticProgression(Progression):
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 |
Print next n values of the progression. |
| Instance Variable | _current |
Undocumented |