On 2007-02-25, Paddy <paddy3118 at googlemail.com> 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