Python Interview Questions

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Nov 19 13:02:16 EST 2012



----- Original Message -----
> Use a set when you want to represent a collection of items and the
> order
> is not important:

An important feature of sets is that their items are unique.
set(list(...)) is a good shortcut to remove duplicate in a list.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the Python-list mailing list