Ive noticed print() includes linebreaks, and its real easy to suppress them.
Is there a way I can write lines to a file, but have the line breaks includes implicitly?
file=open("testfile.txt","w") file.write("line 1") file.write("line 2") file.write("line 3") file.close()
meanwhile the file will contain
line 1\nline 2\nline 3\n
Is this possible in python?