Cody Bable

Generation

generate functionFri, 30 Jun 2023

return list dictionary of the three biggest numbers in a list of dictionaries

def biggest_number_dicts(dictionaries): for dictionary in dictionaries: if dictionary["number"] > biggest_number: biggest_number = dictionary["number"] return biggest_number biggest_number_dicts([{"number": 10}, {"number": 5}, {"number": 20}])

Questions about programming?Chat with your personal AI assistant