Traceback
noun
say it: “TRAYS-bak” /ˈtreɪsˌbæk/
The error report Python prints when a program stops with an error; its last line names the error and the lines above say where it happened.
What is a traceback?
A traceback is the error report Python prints when something goes wrong. Read it from the bottom: the last line says what went wrong, and the lines above say where.
price = "10"
print(price + 5)
# Traceback (most recent call last):
# File "shop.py", line 2, in <module>
# TypeError: can only concatenate str (not "int") to str
In a sentence
- “Read a traceback from the bottom up.”
- “The last line of the traceback said TypeError, and the line above pointed to line 2 of shop.py.”
Level: Novice · More Python terms at this level
Updated