how to print elements of a list in new line in python 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)