I have two lists:
A = [5,5,4,3]
B = [5,1]
I want to remove values that appear in both lists, but only once, i.e. output should be:
Aprime = [5,4,3]
Bprime = [1]
I understand that a good way to get the difference is with sets, but this removes all repeats, not just once