Commit ced2f2d9 authored by Georg Brandl's avatar Georg Brandl

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.
........
parent 86c73bf0
......@@ -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'}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment