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)

11th May 2018, 6:53 AM
You
You - avatar
1 RĂ©ponse
+ 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/
11th May 2018, 7:00 AM
Rahul George
Rahul George - avatar