3 ms·
I agree. It's seldom something I've used in my scripts/small projects for this exact reason. It should also be noted that there is a `while-else` compound stat
by bjd2385 8y ago
I agree. It's seldom something I've used in my scripts/small projects for this exact reason.
It should also be noted that there is a `while-else` compound statement as well, wherein using a `break` immediately exits the loop, without executing the `else` clause [1].
[1] https://docs.python.org/3/reference/compound_stmts.html#the-while-statement https://docs.python.org/3/reference/compound_stmts.html#the-...