Python string formatting special characters

This my Answer to the stackoverflow question: Python string formatting special characters:

An alternative is to use the new Advanced String Formatting

>>> example = "%{test}%".format(test="name")
>>> print example
%name%