Tracebacks Follow the error path to the failing line.
try / except Recover from expected runtime failures.
raise Signal invalid input or state clearly.
logging Record what happened without cluttering output.
assert Check assumptions while developing.
tests Make behavior repeatable and verifiable.