Python Tip #290 (of 365): Pretty-print data structures with pp. >>> from pprint ...

@treyhunner@mastodon.social

Python Tip #290 (of 365):

Pretty-print data structures with pp.

>>> from pprint import pp
>>> pp(user)
{'name': 'Trey',
'languages': ['Python', 'JavaScript'],
'address': {'city': 'San Diego', 'state': 'CA'}}

๐Ÿงต (1/4)

#Python #DailyPythonTip