printing list as string python code example
Example 1: python print list as string
list1 = ['1', '2', '3']
str1 = ''.join(list1)
Example 2: print list in one line python
# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)
list1 = ['1', '2', '3']
str1 = ''.join(list1)
# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)