I have a list of dictionaries and want to find a match for the element of this list(element being an entire dictionary). Not sure how to do this in Python.
Here is what I need:
list_of_dict = [ {a : 2, b : 3, c : 5}, {a : 4, b : 5, c : 5}, {a : 3, b : 4, c : 4} ]
dict_to_match = {a : 4, b : 5, c : 5}
so with above input the dict_to_match
should match the second element in list list_of_dict
Can some one help with a good solution for this problem?