human
Python string formatting when string contains "%s" without escaping
assistant
Here is some code to replace fields delimited by braces {} in string "Day old bread, 50% sale {0}" with string 'today'

"""Day old bread, 50% sale {0}""".format('today')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.