print elements of list as string python code example
Example 1: list to string python
>>> L = [1,2,3]
>>> " ".join(str(x) for x in L)
'1 2 3'
Example 2: python print list as string
list1 = ['1', '2', '3']
str1 = ''.join(list1)
Example 3: print string elements in list python
# list having all elements are strings
strings = ['string1', 'string2', 'string3', 'string4']
for string in strings:
print(string)