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


Groups > comp.lang.python > #34210

Re: Conversion of List of Tuples

Path csiph.com!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <gherron@digipen.edu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.203
X-Spam-Level **
X-Spam-Evidence '*H*': 0.62; '*S*': 0.03; '[1,': 0.09; 'wrote:': 0.17; '>>>': 0.18; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'gary': 0.29; 'subject:List': 0.33; 'to:addr:python-list': 0.33; 'subject:: ': 0.38; 'received:10': 0.38; 'science': 0.38; 'to:addr:python.org': 0.39; 'email addr:gmail.com': 0.63; 'dr.': 0.72; 'institute': 0.72; 'received:204': 0.72; 'received:10.10': 0.75
Date Mon, 03 Dec 2012 12:08:43 -0800
From Gary Herron <gherron@digipen.edu>
User-Agent Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Conversion of List of Tuples
References <6049bc85-6f8e-429b-a855-ecef47a9d28e@googlegroups.com>
In-Reply-To <6049bc85-6f8e-429b-a855-ecef47a9d28e@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Tue, 04 Dec 2012 09:30:49 +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.452.1354609850.29569.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1354609850 news.xs4all.nl 6849 [2001:888:2000:d::a6]:37775
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:34210

Show key headers only | View raw


On 12/03/2012 11:58 AM, subhabangalore@gmail.com wrote:
> [(1,2), (3,4)]
 >>> L=[(1,2), (3,4)]
 >>>
 >>> [b   for a in L   for b in a]
[1, 2, 3, 4]


-- 
Dr. Gary Herron
Department of Computer Science
DigiPen Institute of Technology
(425) 895-4418

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


Thread

Conversion of List of Tuples subhabangalore@gmail.com - 2012-12-03 11:58 -0800
  Re: Conversion of List of Tuples John Gordon <gordon@panix.com> - 2012-12-03 20:04 +0000
    Re: Conversion of List of Tuples MRAB <python@mrabarnett.plus.com> - 2012-12-03 20:13 +0000
    Re: Conversion of List of Tuples Chris Angelico <rosuav@gmail.com> - 2012-12-04 07:17 +1100
  Re: Conversion of List of Tuples Chris Kaynor <ckaynor@zindagigames.com> - 2012-12-03 12:10 -0800
  Re: Conversion of List of Tuples subhabangalore@gmail.com - 2012-12-03 13:14 -0800
    Re: Conversion of List of Tuples John Gordon <gordon@panix.com> - 2012-12-03 22:02 +0000
    Re: Conversion of List of Tuples Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-12-03 22:11 +0000
      Re: Conversion of List of Tuples Walter Hurry <walterhurry@lavabit.com> - 2012-12-03 22:43 +0000
  Re: Conversion of List of Tuples Gary Herron <gherron@digipen.edu> - 2012-12-03 12:08 -0800
  Re: Conversion of List of Tuples Alexander Blinne <news@blinne.net> - 2012-12-04 10:44 +0100
    Re: Conversion of List of Tuples Hans Mulder <hansmu@xs4all.nl> - 2012-12-04 12:45 +0100
      Re: Conversion of List of Tuples Neil Cerutti <neilc@norwich.edu> - 2012-12-04 13:54 +0000

csiph-web