title: Python write line by line to a text file
body: <p>I am trying to output the result from a Python script to a text file where each output should be saved to a line.</p>
  
  <pre><code>f1=open('./output.txt', 'a')
  f1.write(content + "\n")
  </code></pre>
  
  <p>When I open <code>output.txt</code> with the regular <code>notepad</code> the results look like this:</p>
  
  <pre><code>color amber color aqua color analysis color app color adobe color alive app
  </code></pre>
  
  <p>However, when I open the file with <code>notepad++</code> it looks fine and each word is saved on a line.</p>
  
  <p>How can make the script save the result line-by-line so it would show the same on the regular notepad?</p>