Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


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

The division by zero trick is pretty good too!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: