title: Python write to file - New line
body: <p>I am trying to write python code where I write to a fileand for each <code>f.write</code>. I want to make it write to a new line. I thought <code>\n</code> would do it. But right now everything is being written to one line. What am I doing wrong ? </p>
  
  <p>Code (<strong>localtime</strong>, <strong>sum</strong> and <strong>value</strong> are variables)</p>
  
  <pre><code>f = open('/var/www/html/index.html','w')
  f.write("&lt;font size='35px'&gt;"+sum+"&lt;/font&gt;")
  f.write('\n'+localtime)
  f.write('\n Sist oppdatert '+value)
  f.close()
  </code></pre>