June 2017
Beginner to intermediate
274 pages
6h 49m
English
The pprint function, from the package of the same name, makes complex data structures much more readable. If we want to display a list of dictionaries, pprint will do a better job of it than the print function would.
Create a special.py file with the following code:

Run the following command to execute the special.py file:
python3 special.py
The following screenshot is the output of the preceding command:

Between these four functions - print, input, getpass, and pprint - there's a wide range of user interfaces we could ...
Read now
Unlock full access