Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
buzer
· 1y ago · 0 comments
Other would be to use goto (though Python doesn't have it) & introduce something that will panic/throw exception, like creating variable with value 1/(max-i).
Comments
[–]
pinusc
1y ago
Recursion would work for that, you don't need goto.
The division by zero trick is pretty good too!