Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: Python Interview Questions (http://www.velocityreviews.com/forums/t954662-re-python-interview-questions.html)

Jean-Michel Pichavant 11-19-2012 06:02 PM

Re: Python Interview Questions
 


----- 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.


All times are GMT. The time now is 11:26 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.