Format braces, bracket, and parentheses
These are just some extreme special cases. Most people won't need to know about them.
- To print
{
include{{
. - To print
}
include}}
.
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.