title: Python format tabular output
body: <p>Using python2.7, I'm trying to print to screen tabular data.</p>
  
  <p>This is roughly what my code looks like:</p>
  
  <pre><code>for i in mylist:
     print "{}\t|{}\t|".format (i, f(i))
  </code></pre>
  
  <p>The problem is that, depending on the length of <code>i</code> or <code>f(i)</code> the data won't be aligned.</p>
  
  <p>This is what I'm getting:</p>
  
  <pre><code>|foo |bar |
  |foobo   |foobar  |
  </code></pre>
  
  <p>What I want to get:</p>
  
  <pre><code>|foo     |bar     |
  |foobo   |foobar  |
  </code></pre>
  
  <p>Are there any modules that permit doing this?</p>