title: How do I write my output to a CSV in multiple columns in Python
body: <p>I can't figure out how to write my output of my program to a CSV file in columns.</p>
  
  <p>Currently, I'm doing </p>
  
  <pre><code>print(var1, file=outputfile)
  </code></pre>
  
  <p>but it only writes to a file, not specify which column its in. 
  I'm planning on using csv module, but I'm not too sure how to make each variable write itself to a single column in my excel file. EG: </p>
  
  <p>Var1 to column A in excel.</p>
  
  <p>Var2 to column B in excel
  ...</p>
  
  <p>Appreciate any directions and advice.</p>