Skip to main content
Loading page…
Python Mastery
Chapter 9
Lesson 1 of 4
Reading Tracebacks
Contents
Notes
Tutor
Concept
What Is a Traceback?
Loading activity…
Previous
1 / 8
Continue
Contents
Notes
Discussion
Tutor
18 min
8 activities
0 of 8 done
In this lesson
1
What Is a Traceback?
2
SyntaxError vs Runtime Errors
3
Dissecting a Real Multi-Frame Traceback
4
The Most Common Built-in Exceptions
5
Traceback Reading Quiz
6
Match the Exception
7
Gotcha: SyntaxErrors in Other Files
8
Explain a Traceback in Your Own Words
Objectives
Learner can read a Python traceback from top to bottom and pinpoint the error location
Learner can name and distinguish common built-in exception types (NameError, TypeError, ValueError, IndexError, KeyError, ZeroDivisionError)
Learner can identify whether an error is a SyntaxError or a runtime exception
Chapter 9 · Errors & Exceptions
Reading Tracebacks
try / except / else / finally
Raising & Custom Exceptions
EAFP, Validation & Robust Code
Previous: Pure Functions & Immutability
Next: try / except / else / finally