summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/inputoutput.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-08-05 09:04:16 (GMT)
committerGeorg Brandl <georg@python.org>2008-08-05 09:04:16 (GMT)
commit11e18b0c2e0996632904a7dc7c953b2d6ae61b3a (patch)
tree4c53c1cda6b6b4256fb0255032fb1d1a382ba8a4 /Doc/tutorial/inputoutput.rst
parent694f1f8c27f639e385644eaea7a1d187252f9fe1 (diff)
downloadcpython-11e18b0c2e0996632904a7dc7c953b2d6ae61b3a.zip
cpython-11e18b0c2e0996632904a7dc7c953b2d6ae61b3a.tar.gz
cpython-11e18b0c2e0996632904a7dc7c953b2d6ae61b3a.tar.bz2
#3503: fix print statements in 3k doc.
Diffstat (limited to 'Doc/tutorial/inputoutput.rst')
-rw-r--r--Doc/tutorial/inputoutput.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
index bf1c79f..5f8d04e 100644
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -208,7 +208,7 @@ to the right argument, and returns the string resulting from this formatting
operation. For example::
>>> import math
- >>> print 'The value of PI is approximately %5.3f.' % math.pi
+ >>> print('The value of PI is approximately %5.3f.' % math.pi)
The value of PI is approximately 3.142.
Since :meth:`str.format` is quite new, a lot of Python code still uses the ``%``