Colors for Rows
goon12 at gmail.com
Tue Apr 29 20:26:19 CEST 2008
On Tue, Apr 29, 2008 at 10:33 AM, Victor Subervi
<victorsubervi at gmail.com> wrote:
> why doesn't this work?
> It never increments z! Yet, if I print z, it will increment and change the
> bgcolor! Why?!
Are you only trying to "print '<tr bgcolor="%s">\n' % bg" once, or
for each iteration of the loop?
It might have been the way your message was formatted, but the
try/except look like it's out of the for loop. So the print will only
run once, after the loop has gone through all d's in id.
More information about the Python-list