print a list and string in python code example Example: python print list as string list1 = ['1', '2', '3'] str1 = ''.join(list1)