title: How to append a new line to a list in python?
body: <p>I'm trying to append a new line in a list in python to write to my text file any suggestions?</p>
  <pre><code>header = ['Employee ID','Type','Routing Number','Account Number']
  header.append(&quot;\n&quot;)
  
  strOtherLine = [strSsn,strThisType,strThisRoute,strThisAcct]       
  header.append(&quot;\n&quot; + strOtherLine)
  
  fc_otherfile  = r&quot;c:\******\*****\gah\\&quot; + strOtherSavedFile
  #===Writing to the text file
  with open(fc_otherfile,'w', newline='') as t:
      dirdep = csv.writer(t, delimiter=&quot;\t&quot;)
      dirdep.writerow(header)
  </code></pre>
  <p>This is what I get in my text file:</p>
  <pre><code> Employee ID    Type    Routing Number  Account Number  &quot;&quot;  ['###########', 'Checking', '###########','###########']    ['###########', 'Checking', '###########', '###########']   
  </code></pre>
  <p>But what I want is this:</p>
  <pre><code> Employee ID    Type    Routing Number  Account Number  
   ###########  Checking  ###########  ###########
   ###########  Checking  ###########  ###########
   
  </code></pre>