Cody Bable

Generation

generate functionFri, 30 Jun 2023

return the two biggest numbers in a list of dictionaries

def two_biggest_numbers(l): return max(l, key=lambda x: x['number'])

Questions about programming?Chat with your personal AI assistant