Find Difference in a List of Python Dictionaries
I have 2 lists in Python;
listA = [{'b': '3'}, {'b': '4'}]
listB = [{'a': '3'}, {'b': '3'}]
I tried converting it to set it showing a non-typed type: 'dict'
The operation I tried to do is -
list[(set(listA)).difference(set(listB))]
So what can I do with my list to achieve the same functionality? Thanks to
+3
source to share