Newcomer to Python tutorial question
Alan Cameron
alan.cameron at iname.com
Thu May 7 14:58:34 EDT 2009
"Alan Cameron" <alan.cameron at iname.com> wrote in message
news:hRFMl.50224$tb.4955 at newsfe07.ams2...
>I am not sure of this is the right place to ask a question about the
>tutorial
>
> http://docs.python.org/3.0/tutorial/datastructures.html#sets
>
> why is the printed result of
>
>>>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
>>>> print(basket)
> {'orange', 'banana', 'pear', 'apple'}
>
> in the sequence given?
>
>
Thanks to all who replied.
I assume therefore that the order in which the items of the set are printed
could vary each time it is printed?
--
Alan Cameron
More information about the Python-list
mailing list