title: Aligning columns in Python
body: <p>I want to read ONLY the fourth and fifth column of this text file</p>
  <p><strong>sample.txt</strong></p>
  <pre class="lang-none prettyprint-override"><code>2012-01-01  09:00   San Jose    Men's Clothing  214.05  Amex
  2012-01-01  09:00   Fort Worth  Women's Clothing    153.57  Visa
  2012-01-01  09:00   San Diego   Music   66.08   Cash
  </code></pre>
  <p>I am able to do this, but the format of the output isn't what I want.</p>
  <p><strong>output</strong></p>
  <pre class="lang-none prettyprint-override"><code>Men's Clothing                           214.05
  Women's Clothing                           153.57
  Music                            66.08
  </code></pre>
  <p><strong>Desired output</strong></p>
  <pre class="lang-none prettyprint-override"><code>Men's Clothing                             214.05
  Women's Clothing                           153.57
  Music                                       66.08
  </code></pre>
  <p>Here is my code (I used some formatting but it's still not giving me the desired output):</p>
  <pre><code>for line in open(&quot;sample.txt&quot;):
      strsales=line.split()[-2]
      item=line.split('\t')[3]
      itemsales=item+&quot;{0:&gt;33}&quot;.format(strsales)
      print(itemsales)
  </code></pre>