Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'interpreter': 0.04; 'subject:Python': 0.05; 'received:mail-qc0-f174.google.com': 0.09; 'cc:addr:python-list': 0.10; 'concatenate': 0.16; 'oct': 0.16; 'relevant,': 0.16; 'wrote:': 0.17; 'thu,': 0.17; '>>>': 0.18; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'skip:[ 10': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'initial': 0.28; 'no,': 0.29; 'subject: ?': 0.30; 'received:google.com': 0.34; 'list': 0.35; 'received:209.85': 0.35; 'list.': 0.35; 'but': 0.36; 'cc:no real name:2**1': 0.36; 'subject:with': 0.36; 'should': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'header:Received:5': 0.40; 'dont': 0.64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JpdDIaE8xEhQAwngIG4YugMWTvIrtMFtvLGHnGdVBjY=; b=NhfR04mEt8r8RsuY8L+3T2e//UTOQUdkE2UASpuTE5sBc9HDgrqqmaOlRKbZCbazw9 9nBtI/tsvyBa1Kok53zK3Okuup+6OAX0zCskGZZ3gg4kxBp6/FH9q6VruEqq8hFk4wI0 4dO+8DMQVxgRORE+O85ldlRq282Azc6+xWhVBMPC8/0nFnIiReMkbBhS/pGUGYQzQHMT hY8ocd57u6lLnzvCRXUGBQPLLB3wzzCnge+aLVDKspLit+mYbzcnyQqCyQ3kAhPBVdFp CF3MwbH8/NthopKonV1JTg+96Z6qdwbYww2aON88RD/CZrkHlCDWzSKf8v2xu9vHXmRF g9VQ== MIME-Version: 1.0 In-Reply-To: References: <901739839.1116059.1350990465261.JavaMail.root@sequans.com> <50890388.8030809@davea.name> <508906DF.1090804@davea.name> Date: Thu, 25 Oct 2012 05:50:11 -0400 Subject: Re: can we append a list with another list in Python ? From: David Hutto To: inshu chauhan Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, d@davea.name X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351158613 news.xs4all.nl 6925 [2001:888:2000:d::a6]:33769 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32103 On Thu, Oct 25, 2012 at 5:44 AM, inshu chauhan wrote: > > >> >> >> >> or if the clist initial contents were relevant, perhaps you mean >> >> >> >>> clist += alist, blist >> >> >> > >> > But not this because it will simply concatenate the list like >> > [1,2,3,4,5,6] .. I dont want this actaully... >> > >> >> >> >> No, it won't. Try it to see > > > Ok but it should be clist + = [alist, blist ] ???? >> >> >> >> -- Also, try help(list) in the interpreter for functions utilizable by list. Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com