# List of nested dicts - how to extract max(value) if key == '..' [Dataquest Reddit API challenge]

In Dataquest Reddit API challenge, you are given a list of nested dictionaries. Each dictionary is a post from from Reddit, and you need to find the most up-voted one. The up-vote value is stores in each dictionary['ups'] key.

The website gives the following as answer:

python_top_articles = python_top["data"]["children"]
most_upvoted = ""

 max_ups = [max(value) for key,value in items.items() \\