Skip to content

Commit 225aab7

Browse files
gh-110383: Improve 'old string formatting' text in tutorial (#120219)
1 parent eca3f77 commit 225aab7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/tutorial/inputoutput.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,11 @@ left with zeros. It understands about plus and minus signs::
279279
Old string formatting
280280
---------------------
281281

282-
The % operator (modulo) can also be used for string formatting. Given ``'string'
283-
% values``, instances of ``%`` in ``string`` are replaced with zero or more
284-
elements of ``values``. This operation is commonly known as string
282+
The % operator (modulo) can also be used for string formatting.
283+
Given ``format % values`` (where *format* is a string),
284+
``%`` conversion specifications in *format* are replaced with
285+
zero or more elements of *values*.
286+
This operation is commonly known as string
285287
interpolation. For example::
286288

287289
>>> import math

0 commit comments

Comments
 (0)