2 ms·
Instead of avoiding it in production code, it's better to understand that it's the perfect place for a comment. For example: for ...: ... else:
by globular-toast 5y ago
Instead of avoiding it in production code, it's better to understand that it's the perfect place for a comment. For example:
for ...:
...
else:
# loop ended, no positions found
return ...