title: Writing list to csv in Python 3.5
body: <p>I am trying to write </p>
  
  <pre><code>a = [0,1,0,1,1,0]
  </code></pre>
  
  <p>to a csv file, with</p>
  
  <pre><code>with open("output.csv", "w") as f:
      writer = csv.writer(f)
      writer.writerows(a)
  </code></pre>
  
  <p>and I get </p>
  
  <pre><code>Error: iterable expected, not int
  </code></pre>
  
  <p>from the last line. Any ideas? </p>