pprintpformat
Pprintpformat is a term sometimes used to describe the pretty-printed string representation of a Python object produced by the pprint module. In the Python standard library, the function that creates this string is pformat, located in the pprint module.
pformat returns a multiline, human readable representation of complex data structures such as lists, dictionaries, and
Parameters for pformat typically include the object to format and optional keyword arguments such as width
pformat returns the formatted string, while pprint.print or PrettyPrinter().pprint writes output directly to a stream. This
Example usage (in plain text): import pprint; s = pprint.pformat({'a': [1, 2, 3], 'b': {'x': 1, 'y': 2}});