diff lists

Oliver Vecernik vecernik at aon.at
Wed Mar 28 07:47:10 EST 2001


Hi,

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?

Oliver



More information about the Python-list mailing list