title: How can I write list of strings to file, adding newlines?
body: <p>Consider:</p>
  <pre><code>def generator():
      nums = ['09', '98', '87', '76', '65', '54', '43']
      s_chars = ['*', '&amp;', '^', '%', '$', '#', '@',]
    
      data = open(&quot;list.txt&quot;, &quot;w&quot;)
      for c in s_chars:
          for n in nums:
              data.write(c + n)
      data.close()
  </code></pre>
  <p>I would like to add a newline after every &quot;c + n&quot;.</p>