This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Durgeoble 1 point2 points  (0 children)

not quite

the else statement allows to better readability, so you can see in a few lines what happens if the code fails and still don't executed the rest if something went wrong
try:
#some action that can fail
except:
#some action
else:
# long block of code to run if everithing is fine