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