I have two lists which are guaranteed to be the same length. I want to compare the corresponding values in the list (except the first item) and print out the ones which dont mat
Nobody's mentioned filter:
a = [1, 2, 3] b = [42, 3, 4] aToCompare = a[1:] bToCompare = b[1:] c = filter( lambda x: (not(x in aToCompare)), bToCompare) print c