Glossary · Phase 0 · Tools
Traceback
The error report Python prints. Read it from the last line up: that line says what went wrong.
Try it now
On the first call, line 3 succeeds and the except block is skipped. On the second, line 3 fails and execution jumps straight to line 5.
Learn it properly
Errors and exceptions · Read tracebacks, and handle the failures you expect. About 25 minutes.
Other terms from the same lesson
- exception: An error Python raises when something goes wrong while the program runs.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.