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