summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/datastructures.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-05-21 20:45:12 (GMT)
committerGeorg Brandl <georg@python.org>2010-05-21 20:45:12 (GMT)
commit471ed00ae9ccccd2c040b79df04092f0b255f8d7 (patch)
tree420db6e500819ca0bd41d61d907efa2c9f0c580a /Doc/tutorial/datastructures.rst
parentfd0eb3fdf7afc4a8ea025ca6418b1b40affd56aa (diff)
downloadcpython-471ed00ae9ccccd2c040b79df04092f0b255f8d7.zip
cpython-471ed00ae9ccccd2c040b79df04092f0b255f8d7.tar.gz
cpython-471ed00ae9ccccd2c040b79df04092f0b255f8d7.tar.bz2
Remove redundant example.
Diffstat (limited to 'Doc/tutorial/datastructures.rst')
-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'}