how to make a list into a string python 3 code example Example: list to string python >>> L = [1,2,3] >>> " ".join(str(x) for x in L) '1 2 3'