Writing string to a file on a new line every time June 18, 2022 by Tarik Use “\n”: file.write("My String\n") See the Python manual for reference.