Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ced2f2d

Browse files
committed
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. ........
1 parent 86c73bf commit ced2f2d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Doc/tutorial/datastructures.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,7 @@ empty dictionary, a data structure that we discuss in the next section.
377377

378378
Here is a brief demonstration::
379379

380-
>>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
381-
>>> print(basket)
382-
{'orange', 'banana', 'pear', 'apple'}
383-
>>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
380+
>>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
384381
>>> fruit = set(basket) # create a set without duplicates
385382
>>> fruit
386383
{'orange', 'pear', 'apple', 'banana'}

0 commit comments

Comments
 (0)