xxxxxxxxxx
# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)
xxxxxxxxxx
>>> l = [1, 2, 3]
>>> print(' '.join(str(x) for x in l))
1 2 3
>>> print(' '.join(map(str, l)))
1 2 3
xxxxxxxxxx
sample_list = ['Python', 'with', 'jleval', 1, 2, 3]
print(*sample_list, sep=', ')
#Output----------------------------------------
#Python, with, jleval, 1, 2, 3