We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3608c8c commit 06a6532Copy full SHA for 06a6532
Doc/library/stdtypes.rst
@@ -1933,6 +1933,8 @@ expression support in the :mod:`re` module).
1933
1934
>>> "The sum of 1 + 2 is {0}".format(1+2)
1935
'The sum of 1 + 2 is 3'
1936
+ >>> "The sum of {a} + {b} is {answer}".format(answer=1+2, a=1, b=2)
1937
+ 'The sum of 1 + 2 is 3'
1938
>>> "{1} expects the {0} Inquisition!".format("Spanish", "Nobody")
1939
'Nobody expects the Spanish Inquisition!'
1940
0 commit comments