title: Python string formatting with percent sign
body: <p>I am trying to do exactly the following:</p>
  
  <pre><code>&gt;&gt;&gt; x = (1,2)
  &gt;&gt;&gt; y = 'hello'
  &gt;&gt;&gt; '%d,%d,%s' % (x[0], x[1], y)
  '1,2,hello'
  </code></pre>
  
  <p>However, I have a long <code>x</code>, more than two items, so I tried:</p>
  
  <pre><code>&gt;&gt;&gt; '%d,%d,%s' % (*x, y)
  </code></pre>
  
  <p>but it is syntax error. What would be the proper way of doing this without indexing like the first example?</p>