Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
1 answer
8k views

Python 3 - Get n greatest elements in dictionary

Given an dictionary with lists as values this piece of code is dedicated to find the n keys with the longest lists as values. It works, but there has to be a more elegant solution. ...
user7802048's user avatar