Cody Bable

Generation

generate functionSun, 02 Jul 2023

store largest to smallest numbers in a list

def get_max(list): max = list[0] for i in list: if i > max: max = i return max get_max([1, 2, 3, 4])

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