title: Write nicely formatted list with write function
body: <p>I have two lists with numbers and I want them to be written out nicely, just like what I get from <code>print item1, item2</code>. Can anybody help?</p>
  
  <pre><code>outfile = open("tabal_t_y.dat", "w")
  for item1, item2 in zip(t, y):
      outfile.write()
  outfile.close()
  </code></pre>