0
How function works—pprint.pprint
the pprint function was known as the best output function in python.execute the statement”from pprint import pprint”will enable that. question:how it works? (you can try it in python to learn more about it)
1 Respuesta
+ 5
* pprint – Pretty-print data structures*
" pprint contains a “pretty printer” for producing aesthetically pleasing representations of your data structures. The formatter produces representations of data structures that can be parsed correctly by the interpreter, and are also easy for a human to read. The output is kept on a single line, if possible, and indented when split across multiple lines."
Source: https://pymotw.com/2/pprint/