counting items

Steven Bethard steven.bethard at gmail.com
Wed Jan 12 15:19:17 EST 2005


Michael Hartl wrote:
> (Once you can iterate over an arbitrary sequence, the
> flattened version is just
>     [element for element in walk(sequence)].)

Or, better yet:

     list(walk(sequence))

Steve



More information about the Python-list mailing list