title: Writing into text file as tab separated columns in Python
body: <p>I have two lists</p>
  
  <pre><code>A = ["ATTTGTA", "ATTTGTA", "ATTTGTA", "ATTTGTA"]
  
  A_modified = ["ATTGTA", "AAAT", "TTTA"]
  </code></pre>
  
  <p>I want an output tab separated txt file looking like</p>
  
  <pre><code>ATTTGTA ATTGTA
  ATTTGTA AAAT
  ATTTGTA TTTA
  </code></pre>
  
  <p>I tried the following piece of code but it does not write o/p in two columns, just as new rows each time</p>
  
  <pre><code>with open ('processed_seq.txt','a') as proc_seqf:
            proc_seqf.write(A)
            proc_seqf.write("\t")
            proc_seqf.write(A_modified)
  </code></pre>
  
  <p>This is the output I get</p>
  
  <pre><code>ATTTGTA
      ATTGTA
  ATTTGTA
      AAAT
  ATTTGTA
      TTTA
  </code></pre>