Consider this dictionary format.
{1:{'name':'chrome', 'author':'google', 'url':'http://www.google.com/' },
2:{'name':'firefox','author':'mozilla','url':'http://www.mozilla.com/'}}
I want to delete all elements that have the same name and author.
I can easily remove duplicate key-based entries by putting all the keys in a set and possibly expanding them to work with a specific value, but this seems like an expensive operation that is repeated through the dictionary several times. I would not know how to do this with two values in an efficient way. This is a dictionary with thousands of items.
user479870
source
share