I have two lists and one of them has 5 elements and the other one has 4 elements. They have some same elements but they have different elements too. I want to create a list with their different element. How can i do it?
Note: 5 elements list is my main list.
What about this?
In this case,
list3will contain 2 and 5 only.EDIT
If you want the elements from both sets that are unique, the following code should suffice:
Will output 2,5 and 7.