From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 25 Feb 2018 19:13:33 +0000 (-0800) Subject: bpo-25059: Clarify the print separator usage in tutorial (GH-5879) X-Git-Tag: v3.7.0b2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddf2485103c1e56ba4f290641247dfa07fcbe7f3;p=python bpo-25059: Clarify the print separator usage in tutorial (GH-5879) By default `print` adds spaces between its arguments. (cherry picked from commit 84c4b0cc67ceb4b70842b78c718b6e8214874d6a) Co-authored-by: Cheryl Sabella --- diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 74d7bad42a..d5531029d0 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