diff lists

Oliver Vecernik vecernik at aon.at
Wed Mar 28 14:47:10 CEST 2001


I've got following two lists:

['a', 'b', 'c', 'd', 'e', 'f']
['e', 'c', 'f']

I'd like to have the result:

['a', 'b', 'd']

The list need not to be ordered. ['d', 'a', 'b'] will also be ok. What
is the most effective way to achive that result?


More information about the Python-list mailing list