title: Print strings with line break Python
body: <pre><code>import csv
  import datetime
  with open('soundTransit1_remote_rawMeasurements_15m.txt','r') as infile, open('soundTransit1.txt','w') as outfile:
      inr = csv.reader(infile,delimiter='\t')
      #ouw = csv.writer(outfile,delimiter=' ')
      for row in inr:
          d = datetime.datetime.strptime(row[0],'%Y-%m-%d %H:%M:%S')
          s = 1
          p = int(row[5])
          nr = [format(s,'02')+format(d.year,'04')+format(d.month,'02')+format(d.day,'02')+format(d.hour,'02')+format(d.minute,'02')+format(int(p*0.2),'04')]
          outfile.writelines(nr+'/n')
  </code></pre>
  
  <p>Using the above script, I have read in a .txt file and reformatted it as 'nr' so it looks like this:</p>
  
  <pre><code>['012015072314000000']
  ['012015072313450000']
  ['012015072313300000']
  ['012015072313150000']
  ['012015072313000000']
  ['012015072312450000']
  ['012015072312300000']
  ['012015072312150000']
  </code></pre>
  
  <p>..etc.</p>
  
  <p>I need to now print it onto my new .txt file, but Python is not allowing me to print 'nr' with line breaks after each entry, I think because the data is in strings. I get this error:</p>
  
  <pre><code>TypeError: can only concatenate list (not "str") to list
  </code></pre>
  
  <p>Is there another way to do this?</p>