In comparison to Java (in a string), you would do something like "First Line\r\nSecond Line".

So how would you do that in Python, for purposes of writing multiple lines to a regular file?

15 Answers
15

Leave a Reply

Your email address will not be published. Required fields are marked *