title: Python - Print items in list with neither commas nor apostrophes
body: <p>Minimal working example of my code:</p>
  
  <pre><code># Create output data file
  out_data_file = open('output_file','w')
  out_data_file.write("# Header \n")
  out_data_file.close()
  
  list1 = [1,3,4,5,12,6,2,35,74,6,2]
  
  # Open file to append
  with open('output_file', "a") as f:
      f.write('Text'+'  '+str(['%d' % item for item in list1]))
  </code></pre>
  
  <p>which gives me an <code>output_file</code> that looks like:</p>
  
  <pre><code># Header 
  Text  ['1', '3', '4', '5', '12', '6', '2', '35', '74', '6', '2']
  </code></pre>
  
  <p>I want the output to look like this instead:</p>
  
  <pre><code># Header 
  Text  1 3 4 5 12 6 2 35 74 6 2
  </code></pre>
  
  <p>How can I do this?</p>