title: How do I print an integer with a set number of spaces before it?
body: <p>C has <code>printf("%Xd", Y);</code>, which just prints the integer X and makes it take Y spaces on the console window.</p>
  
  <p>For example:</p>
  
  <pre><code>printf("%3d", 10);
  console: " 10"`
  
  printf("%5d", 5);
  console: "    5"
  </code></pre>
  
  <p>How do I use this in python 3?</p>