Python string .format(*variable)
<p>I'm reading a book to read and it covers this below example.</p>

<pre><code>somelist = list(SPAM)
parts = somelist[0], somelist[-1], somelist[1:3]
'first={0}, last={1}, middle={2}'.format(*parts)
</code></pre>

<p>Everything seems clear apart from the star being used at the end of the last line. The book fails to explain the usage of this and I hate to progress on without full understanding things.</p>

<p>Many thanks for your help.</p>
