Python‎ > ‎itertools‎ > ‎

itertools.count()


Definition
Return a count object whose .__next__() method returns consecutive values.

Syntax
count(start=0, step=1) --> count object

Parameters
start=number
step=ending number

Example
The return is equal to:
 import itertools
x=itertools.count(100,9999)
for value in x: print(value)
>>>
Indefinite recurrence of number will start.
>>>

Comments