title: Have Python (2.7) replace %d with nothing
body: <p>I have something like</p>
  
  <pre><code>for cnt in range(1,33):
      someFunction(%d)
  </code></pre>
  
  <p>I built some syntax upon this idea and then discovered that <code>%d</code> should be replaced by (nothing) instead of 1 within the function during the first call (when <code>cnt == 1</code>). So I tried this</p>
  
  <pre><code>for cnt in [None] + range(2,33):
      someFunction(%d)
  </code></pre>
  
  <p>But that doesn't work. I need to pass some integer into the functions as an argument to prevent an error.</p>
  
  <p>Of course I could change the function definitions (and use an empty string) but that would be quite a bit of work. </p>
  
  <p>Is there an elegant workaround for this?</p>
  
  <p><strong>UPDATE 0</strong> </p>
  
  <p>There's actually a whole bunch of functions where I wrote <code>someFunction</code>. They're all built on the assumption they'll get a single integer argument. I'd have to go through all of them in order to pass an empty string into them.</p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>Thanks all for your comments. I guess the only option is to modify the functions themselves so they'll accept a string argument which'll be empty for <code>cnt == 1</code>.</p>