diff options
author | Georg Brandl <georg@python.org> | 2007-09-03 07:10:24 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-03 07:10:24 (GMT) |
commit | e4ac7504c9fb005d81c710bff40777dc170694a8 (patch) | |
tree | 9ed1a85dd5270233ae9439b13077e9920446d8cb /Doc/tutorial/inputoutput.rst | |
parent | 9d4ba3970fa704599769de3676be319133fcaba4 (diff) | |
download | cpython-e4ac7504c9fb005d81c710bff40777dc170694a8.zip cpython-e4ac7504c9fb005d81c710bff40777dc170694a8.tar.gz cpython-e4ac7504c9fb005d81c710bff40777dc170694a8.tar.bz2 |
Tutorial formatting patch by Robin Stocker.
Diffstat (limited to 'Doc/tutorial/inputoutput.rst')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index a58b92a..7dc9f74 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -78,7 +78,7 @@ Some examples:: Here are two ways to write a table of squares and cubes:: >>> for x in range(1, 11): - ... print(repr(x).rjust(2), repr(x*x).rjust(3),end=' ') + ... print(repr(x).rjust(2), repr(x*x).rjust(3), end=' ') ... # Note use of 'end' on previous line ... print(repr(x*x*x).rjust(4)) ... @@ -93,7 +93,7 @@ Here are two ways to write a table of squares and cubes:: 9 81 729 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)) ... 1 1 1 |