python convert list to a string with newline code example Example: how to convert a list to a string by newline python var = "\n".join(myList)