title: How do I create a horizontal multiplication table in Python?
body: <p>So far I have tried to create a table of the first <code>6</code> multiples of <code>2</code> that should give:</p>
  
  <pre><code>2  4  6  8  10  12
  </code></pre>
  
  <p>My code for this currently looks like:</p>
  
  <pre><code>i = 1
  while i &lt;= 6:
     print(2*i ,' \t' , )
     i = i + 1
  </code></pre>
  
  <p>But this <code>outputs</code> them <code>vertically</code>, not <code>horizontally</code> so:</p>
  
  <pre><code>2   
  4   
  6   
  8   
  10      
  12      
  </code></pre>
  
  <p>There is also a <code>tab</code> after each <code>number</code>.</p>