Cody Bable

Generation

generate functionFri, 30 Jun 2023

return the two biggest numbers in a list of dictionaries

def big(b): return max(b, key=lambda x:x['value'])['value'] big([{'value': 5}, {'value': 6}, {'value': 3}])

Questions about programming?Chat with your personal AI assistant