Function to Print a nicely formatted Dictionary or List?
Chris Angelico
rosuav at gmail.com
Thu Jun 9 13:52:02 EDT 2022
On Fri, 10 Jun 2022 at 03:44, Dave <dave at looktowindward.com> wrote:
>
> Hi,
>
> Before I write my own I wondering if anyone knows of a function that will print a nicely formatted dictionary?
>
> By nicely formatted I mean not all on one line!
>
https://docs.python.org/3/library/pprint.html
from pprint import pprint
pprint(thing)
ChrisA
More information about the Python-list
mailing list