What is the easiest way to compare the 2 lists/sets and output the differences? Are there any built in functions that will help me compare nested lists/sets?
Inputs:
Note that with this method you will loose the order
first_set=set(map(tuple,S)) second_set=set(map(tuple,T)) print map(list,list(first_set.union(second_set)-(first_set&second_set)))