Cody Bable

Generation

generate functionThu, 29 Jun 2023

compare numbers in a list and return numbers that smaller than the rest

def compare(numbers): smaller = [] for x in numbers: smaller.append(x) return smaller compare([1, 2, 3])

Questions about programming?Chat with your personal AI assistant