Re: Python Interview Questions

Discussion in 'Python' started by Jean-Michel Pichavant, Nov 19, 2012.

  1. ----- 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.
    Jean-Michel Pichavant, Nov 19, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Krypto

    Python Interview Questions

    Krypto, Oct 30, 2007, in forum: Python
    Replies:
    95
    Views:
    2,020
    Roy Smith
    Sep 23, 2013
  2. Tim Chase
    Replies:
    0
    Views:
    682
    Tim Chase
    Mar 4, 2009
  3. Steve Holden
    Replies:
    0
    Views:
    387
    Steve Holden
    Mar 4, 2009
  4. Vijay
    Replies:
    2
    Views:
    562
    Öö Tiib
    May 7, 2010
  5. reema
    Replies:
    0
    Views:
    237
    reema
    Aug 26, 2008
Loading...

Share This Page