I want to append a newline to my string every time I call file.write(). What's the easiest way to do this in Python?
file.write()
Use " ":
file.write("My String ")
See the Python manual for reference.
2.1m questions
2.1m answers
60 comments
57.0k users