How can I format a list to print each element on a separate line in python? [duplicate]
Embrace the future! Just to be complete, you can also do this the Python 3k way by using the print function:
from __future__ import print_function # Py 2.6+; In Py 3k not neededmylist = ['10', 12, '14'] # Note that 12 is an intprint(*mylist,sep='\n')
Prints:
101214
Eventually, print
as Python statement will go away... Might as well start to get used to it.