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