How do you escape % when formatting a string?
tjreedy at udel.edu
Mon Apr 2 22:02:31 CEST 2007
"erikcw" <erikwickstrom at gmail.com> wrote in message
news:1175543459.131630.96650 at y80g2000hsf.googlegroups.com...
| I'm trying to format a string like so:
| string = "You have a 75% chance of success with %s, don't use %s" %(a,
| This gives me:
| TypeError: not enough arguments for format string
| I've tried 75\%, but that doesn't seem to help. What am I missing?
The reference manual?
More information about the Python-list