Coddy logo
Store
Leaderboard
menu icon
Loading...Creator image

Creator

Anonymous

Exception Handling in Python

In this chapter, you will learn one of the most important concepts in programming which is Exception Handling. Exception Handling is the key if you want to develop solid and unbreakable programs. Exception Handling is the process of responding to exceptions which breaks program.

16 Lessons

15 Challenges

Prerequisites

Basic Python skills

Basics of Object Oriented Programming

Save for later

Introduction to Exceptions

What is Exception ?

Exception vs Error

Exception Handling

try-except

else

Finally

Printing Exception message

Printing Exception Name

Handling Multiple Exceptions

sys module for information

User-defined Exceptions

Types of Exceptions

Raising an Exception

User Defined Exception

Exception Handling Exercise- 1

Exception Handling Example-2

Exception Handling Example-3

Customization/best practices

Customize Tracebacks