Intermediate

Error Handling in Python

Make your code robust! Learn to handle errors with try, except, and finally.

  • 4.8/5.0
  • 4630 enrolled
  • Intermediate
  • French
Course Description

Make your code robust! Learn to handle errors with try, except, and finally.

Syntax vs runtime vs logic errors

--


Read an error message (traceback) step by step

--


Activity: identify the error in simple examples

--

Validate user inputs

--


Simple strategy to avoid crashes (pre-checks)

--


Validation exercises (age, number, format) Premium

--

try / except / finally principle (conceptual)

--


Handle known errors (conversion, missing file)

--


Mini-challenge: propose test cases for a function Premium

--

Debugging techniques (print states, steps)

--


Write clear error messages to understand bugs

--


Homework: write a simple test plan for a small project Premium

--

Edson Bitjoka

Edson Bitjoka

Developer & Instructor

About the instructor

I teach you to anticipate errors so your program never crashes. A must-have skill for real developers!

Student reviews
Samir Kader
Samir Kader

4 days ago

My game no longer crashes when someone types text instead of a number. Thanks, Julien!

Frequently asked questions

To provide a better user experience and prevent your program from crashing unexpectedly.

Not at all! In just a few hours, you’ll handle 90% of common cases.
Error Handling in Python
Online course: 25 € / hour
In-person course: 35 € / hour

This course includes

  • Chapters 8
  • Duration 5h
  • Level Intermediate
  • Language French
  • Unlimited access Yes
  • Certificate Yes