SyntaxFix
Write A Post
Hire A Developer
Questions
You may want to look into os dependent line separators, e.g.:
import os with open('./output.txt', 'a') as f1: f1.write(content + os.linesep)