how to join a string by new line out of a list python code example Example: how to join a string by new line out of a list python var = '\n'.join(myList)