title: How can I create python strings with placeholders with arbitrary number of elements
body: <p>I can do </p>
  
  <pre><code>string="%s"*3
  print string %(var1,var2,var3)
  </code></pre>
  
  <p>but I can't get the vars into another variable so that I can create a list of vars on the fly with app logic.
  for example </p>
  
  <pre><code>if condition:
    add a new %s to string variable
    vars.append(newvar)
  
  else:
    remove one %s from string
    vars.pop()
  print string with placeholders
  </code></pre>
  
  <p>Any ideas on how to do this with python 2.6 ? </p>