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

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