Why does this work:
a = ["one", "two","three"]
b = ["one","three"]
c = set(a)-set(b)
d = set(b)-set(a)
e = []
e.append(d)
e.append(c)
And this does not:
example = set(set([a])-set([b])) + set(set([b])-set([a]))
I know, the first case, would produce a different result than the second one, regarding amount of indexes.
How could I make the second version using set, without using union or symbol items.
Desired output: Make a final list, where you get:
output = ["two"]
Basically finding the element that isn't in common using only set functions and making it a one liner.