title: Python printing list in columns
body: <p>How can I print in Python values from list in columns?</p>
  
  <p>I sorted them, but I don't know how to print them in two ways
  For instance:</p>
  
  <pre><code>list=['apricot','banana','apple','car','coconut','baloon','bubble']
  </code></pre>
  
  <p><strong>First one:</strong> </p>
  
  <pre><code>apricot      bubble     ...
  apple        car        
  baloon       coconut
  </code></pre>
  
  <p><strong>Second way:</strong></p>
  
  <pre><code>apricot    apple     baloon   
  bubble     car      coconut
  </code></pre>
  
  <p>I also want to align everything with ljust/rjust.</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>print " ".join(word.ljust(8) for word in list)
  </code></pre>
  
  <p>but it displays only like in first example. I don't know if it is proper way to do this.</p>