just me
with one comment
Compare two lists?
list(set(b).difference(set(a)))
done
Written by channam
May 21st, 2009 at 10:32 pm
Posted in Uncategorized
Tagged with python
Subscribe to comments with RSS or TrackBack to 'I love Python'.
I quite like this:
[i for i in a if i not in b]
It brings me happy happy joy joy.
Manouche
19 Jul 09 at 9:19 pm
Name (required)
Mail (will not be published) (required)
Website
I quite like this:
[i for i in a if i not in b]
It brings me happy happy joy joy.
Manouche
19 Jul 09 at 9:19 pm