To print { include {{. To print } include }}.
examples/strings/format_braces.py
from __future__ import print_function, division print("{{{}}}".format(42)) # {42} print("{{ {} }}".format(42)) # { 42 } print("[{}] ({})".format(42, 42)) # [42] (42) print("%{}".format(42)) # %42
Anything that is not in curly braces will be formatted as they are.