Generation

generate functionSat, 12 Nov 2022

get two biggest elements in array

def get_two_biggest(arr): return sorted(arr)[-2:] get_two_biggest([1,2,3,4,5])

Questions about programming?Chat with your personal AI assistant