python pretty print a list code example Example: pretty print list python from pprint import pprint pprint(the_list)