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

Skip to content

Commit 471ed00

Browse files
committed
Remove redundant example.
1 parent fd0eb3f commit 471ed00

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)