I want to join N strings together, one line for each item:
my_list=['one', 'two', 'three']
lines='\n'.join(my_list)
Unfortunately I need a trailing newline at the end of each line in lines
. In the above solution the last line is missing the newline.
... I use Python 2.7