Pprint
Pprint, short for pretty print, is a module in the Python standard library that formats Python data structures in a readable, multi-line form. It is widely used for debugging and logging to inspect nested objects such as lists, dictionaries, tuples, and sets.
The module exposes the functions pprint(), pformat(), and the PrettyPrinter class. The top-level function pprint prints
Key options include depth to limit nesting, width to wrap lines, indent to set indentation, and compact
Typical usage: import pprint; data = {'a': [1, 2, {'b': 3}], 'c': 4}; pprint.pprint(data). For one-off formatting
Pprint is designed to be conservative and predictable and relies on standard representations of objects; it