I found a bug in tutorial document

April 29, 2010
11:35 a.m.
Hi. in this document, http://docs.python.org/py3k/tutorial/datastructures.html
basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}>>> print(basket){'orange', 'banana', 'pear', 'apple'}>>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']>>> fruit = set(basket) # create a set without duplicates
the last sentence should be like below one. basket was originally set, so we don't need to change to set redundantly I think. *
fruit = set(fruit) # create a set without duplicates
*
5414
Age (days ago)
5414
Last active (days ago)
0 comments
1 participants
participants (1)
-
DongWoo Son