Dec-19-2016, 11:08 AM
You don't want a list but a string. That's why you wrap the comprehended list inside
Now if you want to add newlines characters after each row, you would need to wrap the inside list into
''.join()
Now if you want to add newlines characters after each row, you would need to wrap the inside list into
'\n'.join()
as well.