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


Groups > comp.lang.python > #65110

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

References <412b4d42-acba-4609-bd6d-e4d5c32db035@googlegroups.com>
Date 2014-01-31 04:29 -0600
Subject Re: how to iterate all sub-element in a list
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.6201.1391164607.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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