So I found that to get the maximum dictionary value in I can do:
dict[max(dict, key=dict.get)]
My dictionary looks like this: {article_title:number of how many different articles link to it}
example: {'10th century': 2, 'Poland' : 0, 'Mexico' : 11}
From group() I get a list of tuples (article_title, article object), example: [(Mexico, Mexico()), (Poland, Poland())]
For that group, I want to check what is the max value article_title may have.
But how do I find dictionary value of a specific group of keys? I'm really lost... I think what I wrote doesn't make sense:
dict = my dictionary
group_of_keys = group() # returns specific list of tuples. The first term of the tuple is my key, the second is irrelevant
max_value = dict[max(dict[group_of_keys], key=dict.get)]
Help please!