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

Questions about programming?Chat with your personal AI assistant