Cody Bable

Generation

generate functionFri, 19 May 2023

create a function for min and max of a list of numbers

def min(list): lowest = list[0] for i in list: if i < lowest: lowest = i return lowest min([1,2,3,4,5])

Questions about programming?Chat with your personal AI assistant