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])

Want to kickstart your project?Use the new AI Studio to create your code