Coddy logo

Explore

Categories

Programming language

Explore courses by programming language.

Course type

Learn, challenge or build your portfolio in a practice-driven way.

Level of knowledge

Choose courses tailored to your level of knowledge perfectly.

Or try to search for any course. Still can't find? let us know what are you missing!

Daily Challenge

search
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

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