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 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/