In brief
pprint formats Python structures with readable indentation and line breaks. It helps inspect nested lists and dictionaries when a single-line representation is inconvenient.
Useful to know
pprint formats Python structures with readable indentation and line breaks. It helps inspect nested lists and dictionaries when a single-line representation is inconvenient. [1]
It is not a universal interchange format. An arbitrary object’s representation may not be reconstructible, and sensitive fields remain sensitive when neatly printed. Select which values should actually appear before writing diagnostic output to a log.
Sources
For further detail and to check the information: