AI engineering glossary · Python core
What is traceback?
Traceback (also called stack trace): The report Python prints for an uncaught exception, listing the chain of function calls that led to the error, most recent call last, and ending with the exception type and message. It is the first thing to read when debugging.
Traceback: an example
A traceback ending in KeyError: 'age' at line 12 tells you the dictionary lookup on that line failed.
Related terms
More Python core terms
Where you learn it
Traceback is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.