Browse Source

Doc: Missing 'f' in an f-string. (GH-9074)

pull/9099/head
Julien Palard 8 years ago
committed by Victor Stinner
parent
commit
25fa141487
  1. 2
      Doc/tutorial/inputoutput.rst

2
Doc/tutorial/inputoutput.rst

@ -127,7 +127,7 @@ applies :func:`repr`::
>>> animals = 'eels'
>>> print(f'My hovercraft is full of {animals}.')
My hovercraft is full of eels.
>>> print('My hovercraft is full of {animals !r}.')
>>> print(f'My hovercraft is full of {animals !r}.')
My hovercraft is full of 'eels'.
For a reference on these format specifications, see

Loading…
Cancel
Save