python how to print entire lit code example
Example 1: python print list with newline
my_list = [1, 2, 3, 4]
print(*my_list, sep="\n")
Example 2: print all elements in list python
# using for loop
scores = [11, 12, 13, 14, 15, 16]
for score in scores:
print(score)