Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Reading an error message and stack trace card 2 of 6

A trace is the chain of calls at the crash

builds on: Command output and exit codes
Programs are split into **functions**, named blocks of code that call each other. When a program crashes, Python prints a **traceback** (also called a **stack trace**). It lists the chain of function calls in progress at that moment. Python lists them oldest first and newest last, hence "most recent call last". Here, `report.py` line 8 called `add_prices`, which was running line 5 of `src/prices.py` when it failed. Each `File ... line ... in ...` entry plus its code line is one **frame**. The last line is the verdict: the error type, then the message.
Terms on this card
traceback
Python's name for a stack trace: the report printed when a program crashes, listing the calls in progress (oldest first) and the error.
stack trace
A printed list of the function calls that were running when a program failed, each with file and line number.
frame
One entry in a stack trace: a file, line number and function name, often followed by that line of code.
function
A named, reusable block of code, such as `add_prices`, that other code can call.
error type
The category name of a failure, like `KeyError` or `TypeError`, printed just before the error message.
Learn this step by step on Bytewise
Lesson goal: Find the error type, the message, and the file and line where a failure happened in a stack trace. Identify which part to paste to an agent as evidence. · the whole lesson