Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Else, Finally & Exceptions Recap

In this lesson, you’ll learn how to use the else and finally keywords when handling exceptions. You’ll see that else clauses only get run if no exceptions occurred and finally clauses get run whether there were exceptions or not, making them useful for tidying up when programs fail unexpectedly.

Comments & Discussion

Anonymous on March 14, 2019

Very nice, I’ll keep watching

Anonymous on March 15, 2019

Thanks for f'text{var}'! Previously I used 'text{}'.format(var) and it was messy when a lot of variables need to be provided.

Paul on March 15, 2019

Well done. Good, clear, concise overview.

Anonymous on March 15, 2019

Really helpful! I can use what I learned today!

Anonymous on March 16, 2019

Very helpful. Straight to the point!

Daniel on March 18, 2019

Great videos. Very helpful.

Blaise Pabon on March 19, 2019

now I realize that I never really understood try, catch, finally.

Chaitanya on March 21, 2019

A nice way of explaining the introduction part about try, except, else, finally

andrewcheryl on March 26, 2019

Super helpful and clear!

Become a Member to join the conversation.