September 2026
1051 pages
35h 4m
English
A decisive advantage of Python besides the simple and flexible programming language itself is the large amount of shipped modules, which in their entirety form the standard library.
Such modules often serve as a purposeful collection of additional functionality. There is, for example, the pprint module (for pretty print), which provides the pprint function. This function enables you to output instances of complex data types clearly formatted on the screen. It’s thus an alternative to the built-in print function when only a single instance is to be output. Before you can use a module, you must include it using the import keyword:
>>> import pprint
Now the functions and constants available in pprint can be used in the subsequent ...
Read now
Unlock full access