Generation

generate functionSat, 12 Nov 2022

Get minimal number from list

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

Questions about programming?Chat with your personal AI assistant