I would like to return values from both lists that not in the other one:
bar = [ 1,2,3,4,5 ] foo = [ 1,2,3,6 ] returnNotMatches( a,b )
would r
One of the simplest and quickest is:
new_list = list(set(list1).difference(list2))