print all of a list code example
Example 1: python print list with newline
my_list = [1, 2, 3, 4]
print(*my_list, sep="\n")
Example 2: print list in one line python
# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)
my_list = [1, 2, 3, 4]
print(*my_list, sep="\n")
# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)