concatenating values in `list1` to a string,str1 = ''.join((str(e) for e in list1))