title: Tuple index out of range in .format
body: <p>I have two arguments that I want to print</p>
  
  <pre><code>print('{0:25}${2:&gt;5.2f}'.format('object', 20))
  </code></pre>
  
  <p>But they give the following response:</p>
  
  <pre><code>Traceback (most recent call last):
  
  IndexError: tuple index out of range
  </code></pre>
  
  <p>But I get the desired output when I changed the code to the following:</p>
  
  <pre><code>print('{0:25}${2:&gt;5.2f}'.format('object', 20, 20))
  </code></pre>
  
  <p>I don't understand why as I only have two sets of {}. Thanks</p>