title: Python: writing int and list in a csv row
body: <p>Maybe this question is too naive, but is giving me a hard time!. I want to write 2 float values and a list of int to a row in <code>csv</code> file in a loop. The file may or may not exist before an attempt is made to write in it. In case it does not, a new file should be created. This is what I am doing:</p>
  
  <pre><code>f = open('stat.csv','a')
  try:
      writer=csv.writer(f,delimiter=' ',quoting=csv.QUOTE_MINIMAL)
      writer.writerow((some_float1,some_float2,alist))
  finally:
      f.close()
  </code></pre>
  
  <p>where <code>alist = [2,3,4,5]</code>. I am getting the following output:</p>
  
  <pre><code> some_float1 some_float2 "[2,3,4,5]"
  </code></pre>
  
  <p>What I want is this:</p>
  
  <pre><code> some_float1 some_float2 2 3 4 5
  </code></pre>
  
  <p>i.e. I would like to get rid of the <code>""</code>, the square brackets and make the delimiter consistent throughout. Any suggestions ? </p>