title: Why does "\t" in python make output automatically align to the left?
body: <p>In my homework I was told to make a power table with 5 rows and 10 columns. Value of the power table at row <code>i</code>, column <code>j</code> is <code>j^i</code> and the column should be spaced with a tab.</p>
  <pre class="lang-py prettyprint-override"><code>row = 5
  column = 10
  
  i = 1
  while i &lt;= row:
      j = 1
      while j &lt;= column:
          print(j ** i, end='\t')
          j += 1
      print(&quot;&quot;)
      i += 1
  </code></pre>
  <p>And here is the output:</p>
  <p><img src="https://i.stack.imgur.com/yZmf0.png" alt="" /></p>
  <p>This works very well, but I don't understand why every column is automatically aligned to the left. Shouldn't <code>'\t'</code> create a tab that has the same length of 4 spaces every time? For example, the spaces in the last 2 columns between &quot;9 and 10&quot; and &quot;59049 and 100000&quot; are apparently not equal. Why is that?</p>