return list dictionary of the three biggest numbers in a list of dictionaries
def top_3_max_numbers(list_of_dictionaries): return sorted(list_of_dictionaries, key=lambda x: x['value'])[-3:] top_3_max_numbers([{'name': 'a', 'value': 1}, {'name': 'b', 'value': 2}, {'name': 'c', 'value': 3}, {'name': 'd', 'value': 4}, {'name': 'e', 'value': 5}])