print list elements on new line python code example
Example 1: python print list with newline
my_list = [1, 2, 3, 4]
print(*my_list, sep="\n")
Example 2: how to print from a python list
list = ['a', 'b']
print(list[0])
#that will print 'a'
#print(list[1]) will print 'b'
Example 3: print each element of list in new line python
mylist = ['10', '12', '14']
for elem in mylist:
print elem