I got this error while trying to use % in a string.
"%s %" % "hello" # will return a ValueError. # how do we escape the second percetage sign?
You must escape a percent sign with another percent sign.
"%s %%" % "hello" # returns hello % "1%% %s" % "complete" # returns 1% complete
Yeah that works, double the Percent Sign and the second one is escaped.