title: python - Writing to file with two arrays separated by only a space
body: <p>I want to print to a file the two arrays in the form below:</p>
  
  <pre><code>a1 = [1, 2, 3]
  a2 = [9, 9, 9]
  </code></pre>
  
  <p>File looks like</p>
  
  <pre><code>1 9
  2 9
  3 9
  </code></pre>
  
  <p>I currently have the code</p>
  
  <pre><code>outstring = zip(Fundvalues, Thirdvalues)
  f = open('FFToutput.txt', 'w')
  f.write('All values in ohms, dB, dB respectivily\n')
  for line in outstring:
      s = str(line) + '\n'
      f.write(s)
  f.close()
  </code></pre>
  
  <p>Which does what I want but with brackets and commas in the file obviously.
  What is a better method which just puts a space between them, and preferably can be extended to 3 4 or 5 arrays in parallel columns?</p>