title: Python: CSV write by column rather than row
body: <p>I have a python script that generates a bunch of data in a while loop. I need to write this data to a CSV file, so it writes by column rather than row.</p>
  <p>For example in loop 1 of my script I generate:</p>
  <pre><code>(1, 2, 3, 4)
  </code></pre>
  <p>I need this to reflect in my csv script like so:</p>
  <pre><code>Result_1    1
  Result_2    2
  Result_3    3
  Result_4    4
  </code></pre>
  <p>On my second loop i generate:</p>
  <pre><code>(5, 6, 7, 8)
  </code></pre>
  <p>I need this to look in my csv file like so:</p>
  <pre><code>Result_1    1    5
  Result_2    2    6
  Result_3    3    7
  Result_4    4    8
  </code></pre>
  <p>and so forth until the while loop finishes. Can anybody help me?</p>
  <h2></h2>
  <hr />
  <p>EDIT</p>
  <p>The while loop can last over 100,000 loops</p>