Source Code:
(back to article)
list1 = [1, 2, 3, 4, 5] list2 = [3, 4, 5, 6, 7] diff = list(set(list1).symmetric_difference(set(list2)))
Result:
Report an issue