Index: Doc/tutorial/datastructures.rst =================================================================== --- Doc/tutorial/datastructures.rst (revision 79532) +++ Doc/tutorial/datastructures.rst (working copy) @@ -381,8 +381,8 @@ >>> print(basket) {'orange', 'banana', 'pear', 'apple'} >>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana'] - >>> fruit = set(basket) # create a set without duplicates - >>> fruit + >>> uniquefruit = set(fruit) # create a set without duplicates + >>> uniquefruit {'orange', 'pear', 'apple', 'banana'} >>> fruit = {'orange', 'apple'} # {} syntax is equivalent to [] for lists >>> fruit