Cody Bable

Generation

generate functionFri, 30 Jun 2023

return the two biggest numbers from a list

def get_biggest(arr): if len(arr) < 2: return None return sorted(arr)[-2] get_biggest([1,2,3,4]) # 3

Questions about programming?Chat with your personal AI assistant