Use pprint to make python print “prettier”

start by importing

from pprint import pprint

now just call pprint passing it for example a dictionary object

pprint(user)

not going to display examples but try it youself – pprint is smart it will format the dictionary in a readable way!

Leave a Comment

Scroll to Top