examples/strings/format_braces.py
#!/usr/bin/env python
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.