Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/qiwsir/StarterLearningPython
/ next
Method
next
2code/21401.py:15–21 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
13
return
self
14
15
def
next(self):
16
if
self.i <= self.n:
17
i = self.i
18
self.i += 1
19
return
i
20
else
:
21
raise
StopIteration()
22
23
if
__name__ ==
"__main__"
:
24
x = MyRange(3)
Callers
1
21401.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected