title: python 2.7 loop's index in quotation marks
body: <p>I am using Python 2.7. How does you use the index of a loop inside quotation marks? This appears in a option. I have tried putting index in <code>quote()</code> and after <code>%</code>. </p>
  
  <p>For example: </p>
  
  <pre><code>for i in range(1, 10):  
      parser.add_option('-l', '--location', value="i")
  </code></pre>