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


Groups > comp.lang.python > #31919

Re: can we append a list with another list in Python ?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <alec.taylor6@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'syntax': 0.03; 'subject:Python': 0.05; 'append': 0.07; 'python': 0.09; '[1,': 0.09; 'cc:addr:python-list': 0.10; '2.7.3': 0.16; '66,': 0.16; 'oct': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'bit': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'skip:[ 10': 0.26; 'message-id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'routine': 0.29; 'url:mailman': 0.29; 'subject: ?': 0.30; 'url:python': 0.32; 'url:listinfo': 0.32; 'another': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:with': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'url:mail': 0.40; 'more': 0.63; '88,': 0.84
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=eR7GBxTWiaELVYD57Qiv6yiVMzkzhnKZ8HXQXs1cI3k=; b=F+M7LNgVEjJKgfmrA1WxUhs1wC+9C5v7kd5XUYSH/NiLjX0QdhEahtYgYHfJIg88PT 9xEqghrfjM+eEUi96t4cCa/Jj3OvsIBGHwpivotEcaH2u5Tw6Fevook7/6t5t5bpWXk2 Gj8SlMBL/L4bLkTlVRefhrcaobPTY67wmLr9bCTFqOi9aDaYVriHUSf2apegrZHjVk4J RuS7Fe+prbAwJ1fowM+aEInwm+B2oLXETHmQIg/EcyF/jPeRnrcg25jLKPDiF6HWs6sP 8uaCkVfcKEOGae8GfzDZ9TOTzqY8q0My+NLUtDKDU8x21PYed1K6jBHWJuTbwElIxxo3 DKIQ==
MIME-Version 1.0
In-Reply-To <CAFqGZRHGgN_tEinBku9cj78D_VawZgP3F8k5+FKen0mW3AeVbg@mail.gmail.com>
References <CAFqGZRHGgN_tEinBku9cj78D_VawZgP3F8k5+FKen0mW3AeVbg@mail.gmail.com>
Date Tue, 23 Oct 2012 18:49:23 +1100
Subject Re: can we append a list with another list in Python ?
From Alec Taylor <alec.taylor6@gmail.com>
To inshu chauhan <insideshoes@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
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.2651.1350978566.27098.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1350978566 news.xs4all.nl 6852 [2001:888:2000:d::a6]:47233
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:31919

Show key headers only | View raw


Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> [1,2,3,4,5] + [99,88,77,66,0]
[1, 2, 3, 4, 5, 99, 88, 77, 66, 0]

On Tue, Oct 23, 2012 at 6:36 PM, inshu chauhan <insideshoes@gmail.com> wrote:
> can we append a list with another list in Python ? using the normal routine
> syntax but with a for loop ??
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

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


Thread

Re: can we append a list with another list in Python ? Alec Taylor <alec.taylor6@gmail.com> - 2012-10-23 18:49 +1100

csiph-web