title: Writing lists of data to a text file column by column
body: <p>I have 3 lists, a,b,c how can I write them to a text file in the format of table (rows and columns) as this:</p>
  
  <pre><code> time(s) voltage(V)    current(A)
         0    0000000000      101101010
         0.0005   0000110001  101011000
        0.001 0001100000      101011000
  </code></pre>
  
  <p>I have tried to write:</p>
  
  <pre><code>powdata=open("powdata.txt","w")
  for i in a:
     powdata.write("%s\n"%i)
  for j in b:
     powdata.write("%s\n"%j)
  
  powdata.close()
  </code></pre>
  
  <p>Unfortunately this kind of codes just writes data in the text file vertically I mean not like the suggested table</p>