Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33596

Re: Python Interview Questions

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!rt.uk.eu.org!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=66356abdf=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.312
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.47; '*S*': 0.09; 'subject:Python': 0.05; 'shortcut': 0.09; 'duplicate': 0.17; 'subject:Questions': 0.22; 'sets': 0.23; 'feature': 0.24; 'header:In-Reply-To:1': 0.25; 'represent': 0.28; '-----': 0.32; 'to:addr:python-list': 0.33; 'list.': 0.35; 'thank': 0.36; 'subject:: ': 0.38; 'store': 0.38; 'to:addr:python.org': 0.39; 'remove': 0.61; 'you.': 0.61; 'received:194': 0.61; 'information': 0.63; 'person,': 0.65; 'disclose': 0.69; 'notice:': 0.71; 'privileged.': 0.72; 'subject:Interview': 0.84; 'unique.': 0.84; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="4.83,281,1352070000"; d="scan'208";a="911707"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Mon, 19 Nov 2012 19:02:16 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To python-list@python.org
In-Reply-To <50a8acdc$0$29978$c3e8da3$5496439d@news.astraweb.com>
Subject Re: Python Interview Questions
MIME-Version 1.0
X-Mailer Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC7 (Linux)/7.2.0_GA_2669)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Mailman-Approved-At Tue, 20 Nov 2012 09:58:54 +0100
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.35.1353401935.29569.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353401935 news.xs4all.nl 6963 [2001:888:2000:d::a6]:52107
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33596

Show key headers only | View raw



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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python Interview Questions Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-11-19 19:02 +0100

csiph-web