title: convert txt file to xls in python and add new columns
body: <p>I have a text file like this content :</p>
  
  <pre><code>28179
  49172
  40180
  36228
  29337
  </code></pre>
  
  <p>I want to convert text file to excel output <strong>".xls"</strong> that <strong>has two columns</strong> as follow :</p>
  
  <pre><code>ID    ----    Code
  1     ----    28179
  2     ----    49172
  3     ----    40180
  4     ----    36228
  5     ----    29337
  </code></pre>
  
  <p>How can i do this with python?</p>
  
  <p>Thanks!</p>