summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-05-21 20:47:30 (GMT)
committerGeorg Brandl <georg@python.org>2010-05-21 20:47:30 (GMT)
commitced2f2d9f938908e5f96016bfa703a5f8fe80d8f (patch)
tree3ee13910a67bdfbb58c67b147f743e7797b19ac8 /Doc/tutorial
parent86c73bf0fcbd4f123f63a4be08d1d1b57c8238b2 (diff)
downloadcpython-ced2f2d9f938908e5f96016bfa703a5f8fe80d8f.zip
cpython-ced2f2d9f938908e5f96016bfa703a5f8fe80d8f.tar.gz
cpython-ced2f2d9f938908e5f96016bfa703a5f8fe80d8f.tar.bz2
Recorded merge of revisions 81410 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r81410 | georg.brandl | 2010-05-21 22:45:12 +0200 (Fr, 21 Mai 2010) | 1 line Remove redundant example. ........
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/datastructures.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index b562558..32e4a73 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -377,10 +377,7 @@ empty dictionary, a data structure that we discuss in the next section.
Here is a brief demonstration::
- >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
- >>> print(basket)
- {'orange', 'banana', 'pear', 'apple'}
- >>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
+ >>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> fruit = set(basket) # create a set without duplicates
>>> fruit
{'orange', 'pear', 'apple', 'banana'}