François Pinard wrote: > Taking advantage of other clever suggestions, I would guess that: > > both = list1 + list2 > result = dict(zip(both, both)).keys() > > would not be so bad, speed-wise. > result=dict(zip(list1,list1)) result.update(dict(zip(list2,list2))) John