Skip to main content
Questions Why Us Pricing Log In Sign Up

Traceback in Python

What is the traceback and what does it contain?

Answer

A traceback is the error report Python prints when an exception is raised.

It contains:

  • the exact line where the exception occurred

  • the error message (error type + short description)

← Back to collection
← Previous question Generator Expression vs List Comprehension 1 Next question Common Python Errors →

Social

  • Instagram

Contact

  • linkedin.com/in/rinorbirinxhiku/

Legal

  • Privacy Policy
  • Terms of Service
© 2026 quant.rb. All rights reserved.