How do I arrange multiple arguments with string formatting in python
<p>I have this piece of code and I'm trying to figure out how to have multiple arguments in that second set of brackets. I want the number to be right aligned in 6 places and rounded to 2 decimal points. I get the error 'invalid format specifier' every time. </p>

<pre><code>print("{0:&gt;5}   {1:&gt;6, 6.2f}".format(pounds, euros))
</code></pre>

<p>If you read the <a href="https://docs.python.org/3/library/string.html#format-specification-mini-language" rel="nofollow">Format Specification Mini-Language</a>, you'll notice that one can only specify the format width <em>once</em> and <em>precision</em> appears after the <code>'.'</code>:</p>

<pre><code>&gt;&gt;&gt; "{0:&gt;5}   {1:&gt;6,.2f}".format(10, 1500.657)
'   10   1,500.66'
</code></pre>

python