I have two lists in Python, like these:
temp1 = [\'One\', \'Two\', \'Three\', \'Four\'] temp2 = [\'One\', \'Two\']
I need to create a third
This is another solution:
def diff(a, b): xa = [i for i in set(a) if i not in b] xb = [i for i in set(b) if i not in a] return xa + xb