Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
choeger
· 5y ago · 0 comments
You should be able to create an unbounded for loop as well. After all, a python process has mutable state, so it should be fairly simple to increment the length of your loop inside the loop body.
Comments
[–]
uryga
5y ago
>>> x = [0] >>> for x in xs: ... print(x) ... xs.append(x+1)