Referencing Items in a List of Tuples

rshepard at nospam.appl-ecosys.com rshepard at nospam.appl-ecosys.com
Sun Feb 25 19:35:53 EST 2007


On 2007-02-25, Jussi Salmela <tiedon_jano at hotmail.com> wrote:

> I'm nitpicking, but the OP has a list of tuples:
> ec = [ item[2:]  for item in mainlist  if item[:2] == ('eco','con') ]

Jussi,

  An excellent nit to pick.

Thank you,

Rich



More information about the Python-list mailing list