How should I subtract two list of dictionaries
in a pythonic way?
I want to find the element that are unique in the first listOfDict.
See my example below:
firstDict = [{'A':1 ,'B':1}, {'A':2 ,'B':2}]
secondDict = [{'A':3 ,'B':3}, {'A':2 ,'B':2}]
magicFunction(A, B)
should return
[{'A':1 ,'B':1}
and magicFunction(B, A)
should return
[{'A':3 ,'B':3}