On 2007-02-25, Paddy <[EMAIL PROTECTED]> wrote:

> You might also use list comprehensions to accumulate the values you
> need:
>
> ec = [ item[2:]  for item in mainlist  if item[:2] == ['eco','con'] ]

  Thank you, Paddy. That's the syntax I couldn't work out myself.

Rich
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to