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


Groups > comp.lang.python > #65121

Re: how to iterate all sub-element in a list

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: how to iterate all sub-element in a list
Date 2014-01-31 14:48 +0000
References <412b4d42-acba-4609-bd6d-e4d5c32db035@googlegroups.com> <mailman.6201.1391164607.18130.python-list@python.org> <600f2d6b-8068-453c-b21f-b23d0b13ff62@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.6208.1391179741.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 31/01/2014 10:42, seaspeak@gmail.com wrote:
> Skip Montanaro於 2014年1月31日星期五UTC+8下午6時29分27秒寫道:
>> Google for "python flatten list."
>>
>>
>>
>> This question comes up frequently, though I'm not sure if that's
>>
>> because it's a common homework problem or because people are unaware
>>
>> of the += operator (or extend method) for lists, and so build
>>
>> lists-of-lists when they could just build them flat in the first
>>
>> place.
>>
>>
>>
>> Skip
> thanks. a keyword is all I need.
> It is not homework. It is a common problem I guess.
>

I'm pleased to see that you have answers.  In return would you please 
read and action this https://wiki.python.org/moin/GoogleGroupsPython to 
prevent us seeing the double line spacing above, thanks.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

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


Thread

how to iterate all sub-element in a list seaspeak@gmail.com - 2014-01-31 02:16 -0800
  Re: how to iterate all sub-element in a list Skip Montanaro <skip@pobox.com> - 2014-01-31 04:29 -0600
    Re: how to iterate all sub-element in a list seaspeak@gmail.com - 2014-01-31 02:42 -0800
      Re: how to iterate all sub-element in a list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-31 14:48 +0000
        Re: how to iterate all sub-element in a list seaspeak@gmail.com - 2014-01-31 08:23 -0800
  Re: how to iterate all sub-element in a list Peter Otten <__peter__@web.de> - 2014-01-31 11:48 +0100
    Re: how to iterate all sub-element in a list Rustom Mody <rustompmody@gmail.com> - 2014-01-31 04:12 -0800

csiph-web