7.2.8.1. counter

counter(start=0, step=1)[source]

Return a object whose .__call__() method returns consecutive values.

Parameters:
  • start (int, float, optional) – Start value.
  • step (int, float, optional) – Step value.