summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'}