diff options
author | Cheryl Sabella <cheryl.sabella@gmail.com> | 2018-02-25 19:06:01 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2018-02-25 19:06:01 (GMT) |
commit | 84c4b0cc67ceb4b70842b78c718b6e8214874d6a (patch) | |
tree | 3124168b77c18aea3b7e1d9c10b90aeba4e73d82 /Doc | |
parent | a19fb3c6aaa7632410d1d9dcb395d7101d124da4 (diff) | |
download | cpython-84c4b0cc67ceb4b70842b78c718b6e8214874d6a.zip cpython-84c4b0cc67ceb4b70842b78c718b6e8214874d6a.tar.gz cpython-84c4b0cc67ceb4b70842b78c718b6e8214874d6a.tar.bz2 |
bpo-25059: Clarify the print separator usage in tutorial (GH-5879)
By default `print` adds spaces between its arguments.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 74d7bad..d553102 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -100,7 +100,7 @@ Here are two ways to write a table of squares and cubes:: 10 100 1000 (Note that in the first example, one space between each column was added by the -way :func:`print` works: it always adds spaces between its arguments.) +way :func:`print` works: by default it adds spaces between its arguments.) This example demonstrates the :meth:`str.rjust` method of string objects, which right-justifies a string in a field of a given width by padding |