title: Dynamically calculated zero padding in format string in python
body: <p>So I know that <code>"%02d to %02d"%(i, j)</code> in Python will zero pad <code>i</code> and <code>j</code>.</p>
  
  <p>But, I was wondering if there is any way to dynamically zero pad in a format string (I have a list of numbers and I want the zero pad size to be equal to the longest number in that list).</p>
  
  <p>I know that I could use <code>zfill</code>, but I was hoping I could do the entire thing in a format string.</p>