Hacker News new | ask | show | jobs
by buzer 207 days ago
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).
1 comments

Recursion would work for that, you don't need goto.

The division by zero trick is pretty good too!