How to print a list in Python "nicely"
Simply by "unpacking" the list in the print function argument and using a newline (\n) as separator.
print(*lst, sep='\n')
lst = ['foo', 'bar', 'spam', 'egg']
print(*lst, sep='\n')
foo
bar
spam
egg
from pprint import pprint
pprint(the_list)