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
You could use sets:
>>> list1=[1,2,3,4] >>> list2=[1,5,3,4] >>> set(list1[1:]).symmetric_difference(list2[1:]) set([2, 5])