[Tutor] How to leave literal %s in output of formatted string

Jeff Kowalczyk jtk@yahoo.com
Thu May 15 10:38:03 2003


I want to build a format string in code. How do I leave a
literal %s in my string formatting output? I can't find any
escape code for the % character.

(desired output)
>>> VendorID = 'ACME'
>>> s = '%s Download \%s' % VendorID
'Acme Download %s'