Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.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.089 X-Spam-Evidence: '*H*': 0.82; '*S*': 0.00; 'that?': 0.05; 'wrote:': 0.18; 'command': 0.22; '>>>': 0.22; 'this?': 0.23; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; 'subject:lists': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'turn': 0.37; 'list': 0.37; 'list.': 0.37; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'skip:t 30': 0.61; '20,': 0.68 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=IFJ0CJX7/NfKNwJaeud0/3F6ye11nf3T494JvP5TAco=; b=mUxw/07FFV8tcHE/EvyE0JB243aFdkhDblYrsr4XH6V1pgsBd4P5tcukLE9cgeYAWb 18TbN3y15tSuBDPm+q55dEa7v91GvODoArio4imn8MlhqWq+7elB8wrxgdYxoCjVcEvN T9QeM6CcUA+bt/2NrqOCMaNOoMzFu5vRW9IScd6yK+RHO/C/EKRvm+JqM4tepO9YfckU nUdQzOX8yXe+mc4mKZ172JmJusdXI3sdyMAPMcwY3nwxu7j0CR7wRfG4gBerWRPb7Ne3 Vp1FQc8IHMTD0cLhvr+fHJaxxj3FHMVgv5OLtfUQq7omJBziyWfK5I1Cvf1edmrEESB5 Vo5g== X-Received: by 10.68.57.166 with SMTP id j6mr5026852pbq.145.1413835166465; Mon, 20 Oct 2014 12:59:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <6jpa4ahhc8ln7hk8s0258hvqd3io51epa0@4ax.com> References: <6jpa4ahhc8ln7hk8s0258hvqd3io51epa0@4ax.com> From: Ian Kelly Date: Mon, 20 Oct 2014 13:58:46 -0600 Subject: Re: Building lists To: Python Content-Type: text/plain; charset=UTF-8 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413835170 news.xs4all.nl 2931 [2001:888:2000:d::a6]:57615 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79330 On Mon, Oct 20, 2014 at 1:49 PM, Seymore4Head wrote: > For starters I would like to know if you can make a single item list > and then turn it into a 2 item list. Is there a command for that? You mean like this? >>> the_list = ['first_item'] >>> the_list.append('second_item') >>> the_list ['first_item', 'second_item']