Cody Bable

Generation

generate functionFri, 30 Jun 2023

return the two biggest numbers in a list

def max2(list): max1 = max(list) list.remove(max1) max2 = max(list) return max1, max2 max2([0,1,2,3,4,5,6])

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