1>>> l = [1, 2, 3]
2>>> print(' '.join(str(x) for x in l))
31 2 3
4>>> print(' '.join(map(str, l)))
51 2 3
1my_list = ["pizza", "soda", "muffins"]
2
3my_list[0] # outputs "pizza"
4my_list[-1] # outputs the last element of the list which is "muffins"
5my_list[:] # outputs the whole list
6my_list[:-1] # outputs the whole list except its last element
7
8# you can also access a string's letter like this
1# list having all elements are strings
2strings = ['string1', 'string2', 'string3', 'string4']
3for string in strings:
4 print(string)