hex(dummy)[2:] - issue...

Florian Wollenschein Florian.Wollenschein at FernUni-Hagen.de
Wed May 6 13:48:11 EDT 2009


Hi there,

I need some advice :-)
I'm using hex(dummy)[2:] to represent a color in hexadecimal format for 
the bgcolor in an html file. dummy is the color value in RGB of course...

Now, if there's an R, G or B value of zero, this command only prints one 
single 0 instead of two. What's wrong with the code?

Thanks,
Listick
http://www.listick.org



More information about the Python-list mailing list