Tuesday, January 31, 2012

Intersection of lists in Python

def intersect(a, b):
return list(set(a) & set(b))

1 comment:

  1. IT professional must read it and remember the code for future reference. Thanks for sharing it with us.

    ReplyDelete