title: I want the single digit numbers to line up better with the other multi digit numbers in my table
body: <p>this is my code</p>
  
  <pre><code>def table():
      print(A)
      print(B)
      print(C)
      print(D)
  </code></pre>
  
  <p>this is what it looks like</p>
  
  <pre><code>[7, 13, 10, 8]
  [12, 14, 6, 5]
  [15, 9, 2, 11]
  [1, 3, 0, 4]
  </code></pre>
  
  <p>I want the numbers to line up better, kinda like this. </p>
  
  <pre><code>[ 7, 13, 10,  8]
  [12, 14,  6,  5]
  [15,  9,  2, 11]
  [ 1,  3,  0,  4]
  </code></pre>
  
  <p>or something better so that it's easier to read it. This would be especially necessary when the table gets bigger.</p>
  
  <p>I found an old post that would solve my problem but I think it's for an older version of python so it doesn't work in the current version of python.</p>
  
  <p><a href="https://stackoverflow.com/questions/29002179/printing-with-exactly-1-space-if-a-single-digit?answertab=active#tab-top">Printing with exactly 1 space if a single digit?</a></p>