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