mirror of https://github.com/python/cpython
Bug #1567375: a minor logical glitch in example description.
This commit is contained in:
parent
f8508cca47
commit
21d994390c
|
@ -3060,6 +3060,7 @@ Here are two ways to write a table of squares and cubes:
|
||||||
8 64 512
|
8 64 512
|
||||||
9 81 729
|
9 81 729
|
||||||
10 100 1000
|
10 100 1000
|
||||||
|
|
||||||
>>> for x in range(1,11):
|
>>> for x in range(1,11):
|
||||||
... print '%2d %3d %4d' % (x, x*x, x*x*x)
|
... print '%2d %3d %4d' % (x, x*x, x*x*x)
|
||||||
...
|
...
|
||||||
|
@ -3075,8 +3076,9 @@ Here are two ways to write a table of squares and cubes:
|
||||||
10 100 1000
|
10 100 1000
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
(Note that one space between each column was added by the way
|
(Note that in the first example, one space between each column was
|
||||||
\keyword{print} works: it always adds spaces between its arguments.)
|
added by the way \keyword{print} works: it always adds spaces between
|
||||||
|
its arguments.)
|
||||||
|
|
||||||
This example demonstrates the \method{rjust()} method of string objects,
|
This example demonstrates the \method{rjust()} method of string objects,
|
||||||
which right-justifies a string in a field of a given width by padding
|
which right-justifies a string in a field of a given width by padding
|
||||||
|
|
Loading…
Reference in New Issue