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