python 3 print list by line code example
Example 1: how do i print a list line by line in python
# python, print list one item at a time
my_list = ["one", "two", "three"]
for item in my_list:
print(item)
# you can use any variable pyton accepts in place of "item"
Example 2: print list in one line python
# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)