[Tutor] Sets module/Removing duplicates
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Thu Feb 5 19:42:59 EST 2004
On Thu, 5 Feb 2004, Conrad Koziol wrote:
> I've been doing some research on the sets module, and everywhere it says
> its great from removing duplicates from a list, but nowhere actually
> tells you how (or am i just not looking in the right spot?). Can anyone
> show me how :)
Hi Conrad,
The examples from:
http://www.python.org/doc/lib/set-example.html
will construct a few sets out of lists of unique elements. But try
putting duplicates elements in the lists and see what happens.
Good luck!
More information about the Tutor
mailing list