A pythonic note to myself
February 19th, 2010 • Comments Off on A pythonic note to myselfHow to find the unique elements of two lists:
def unique(self, a, b): return [item for item in a if item not in b]
How to find the unique elements of two lists:
def unique(self, a, b): return [item for item in a if item not in b]