4 ms·
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).
by buzer 11mo 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).
- pinusc 11mo agoRecursion would work for that, you don't need goto. The division by zero trick is pretty good too!