Exercise: Python

Questions for: Debugging

What is the purpose of the Python pdb module?
A:
To perform database operations
B:
To debug and interactively explore code
C:
To parse and manipulate XML data
D:
To handle exceptions
Answer: B
The pdb module in Python is used for debugging and interactively exploring code, providing a powerful debugger with features like breakpoints and code stepping.
Ad Slot (Above Pagination)
Quiz