Is there a more agile way to re-factor the following string formating code
<p>I need to format a string as bellow :</p>

<pre><code>print "%8s%-32s%-32s%-32s" % (' ', 'CAT A', 'CAT B', 'CAT C')
</code></pre>

<p>Since the number of cat is a variable, here is what I code.</p>

<pre><code>values = [' ', ]
format = "%8s"
# width is a variable
width = house.get_width()

for cat in range(house.get_cat_count()):
    format = format + '%-' + str(width) + 's'
    values.append('CAT ' + chr(ord('A') + operator))

# format is "%8s%-32s%-32s%-32s"
# values is [' ', 'CAT A', 'CAT B', 'CAT C']
${format % tuple(values)}
</code></pre>

<p>The code doesn't seem short and agile. Is there any other way to code it in <code>python</code> style?</p>
