print a %

Claude tendac at wanadoo.fr
Sat Sep 28 06:11:57 EDT 2002


When I do 
print "image size=%d%" %(50)
I've got an error

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: incomplete format

I do not know how to escape the second %

print "image size=%d%" %(50) 
image size=50%

Thank you



More information about the Python-list mailing list