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.

Level: beginnerTopic: Python core

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.