6 lines
126 B
Python
6 lines
126 B
Python
|
def __next__(self):
|
||
|
if self.count == self.stop:
|
||
|
raise StopIteration
|
||
|
self.count += 1
|
||
|
return self.count - 1
|