print list and string python code example
Example 1: print string elements in list python
# list having all elements are strings
strings = ['string1', 'string2', 'string3', 'string4']
for string in strings:
print(string)
Example 2: python print list using format
>>> '{} {}'.format('Python', 'Format')
'Python Format'