pbojinov
4/19/2017 - 10:44 PM

List Intersections

List Intersections

a = [1,2,3]
b = [1,2,3,4,5]

x = list(set(b) - set(a))
y = list(set(b) - set(b).intersection((set(a))))

print x == y