diff -r d433d74e0377 Doc/tutorial/inputoutput.rst --- a/Doc/tutorial/inputoutput.rst Thu Sep 10 16:00:06 2015 +0200 +++ b/Doc/tutorial/inputoutput.rst Thu Sep 10 22:15:38 2015 +0530 @@ -98,8 +98,14 @@ 9 81 729 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.) +In the first example, one space between each column was added by the +way :func:`print` works: it adds spaces between its arguments by default. +You can change this default behavior by specifying your custom seperator to +the *sep* keyword argument. :: + + >>> print('foo', 'bar', 'spam', 'egg', sep='-') + foo-bar-spam-egg + 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