title: Multiplication table with for loops
body: <p>I've been trying to make a multiplication table with for loops in Python.</p>
  <pre class="lang-py prettyprint-override"><code>
  for i in range(1,11):
      print(&quot;\t&quot;, i)
  print(&quot;\n&quot;)
  print(&quot;-------------------------------&quot;)
  for a in range(1, 11):
      print(a)
      for t in range(1,11):
          print(&quot;\t&quot;, a * t, end=&quot;\t&quot;)
  </code></pre>
  <p>The problem I have is the output puts every vertical factor on the wrong side of the products, and I would like to have them like <code>1</code> is.</p>
  <p>This is a picture of what I mean:</p>
  <p><img src="https://i.stack.imgur.com/Mzf86.png" alt="" /></p>
  <p>Any solutions? I've been trying and trying to move the <code>\t</code> and <code>\n</code> in other places to make it work but it never seems to work for me to get them the way I want.</p>
  <p>Thanks in advance.</p>