diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-26 01:03:56 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-26 01:03:56 (GMT) |
commit | e6f00637be87c8f5f0e50bf317d684ea421a6d19 (patch) | |
tree | 72af08d6c7d328792bce581755aa38c24969b6bd /Doc/tutorial/datastructures.rst | |
parent | dc6c16ac634eef50ba819adea2eed74651530197 (diff) | |
download | cpython-e6f00637be87c8f5f0e50bf317d684ea421a6d19.zip cpython-e6f00637be87c8f5f0e50bf317d684ea421a6d19.tar.gz cpython-e6f00637be87c8f5f0e50bf317d684ea421a6d19.tar.bz2 |
Merged revisions 63655 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r63655 | benjamin.peterson | 2008-05-25 19:54:22 -0500 (Sun, 25 May 2008) | 2 lines
update the tutorial to use str.format
........
Diffstat (limited to 'Doc/tutorial/datastructures.rst')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 8e4f053..34d0884 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -515,7 +515,7 @@ with the :func:`zip` function. :: >>> questions = ['name', 'quest', 'favorite color'] >>> answers = ['lancelot', 'the holy grail', 'blue'] >>> for q, a in zip(questions, answers): - ... print('What is your %s? It is %s.' % (q, a)) + ... print('What is your {0}? It is {1}.'.format(q, a)) ... What is your name? It is lancelot. What is your quest? It is the holy grail. |