Cody Bable

Generation

generate functionSun, 02 Jul 2023

store largest to smallest numbers in a list

def order_list(numbers): ordered_numbers = [] for number in numbers: ordered_numbers.append(number) return ordered_numbers order_list([2, 4, 1, 3, 5])

Questions about programming?Chat with your personal AI assistant