Generation

generate functionMon, 12 Dec 2022

Find all instances of an odd number in a hash map of integers

def find_odd(lst): return [num for num in lst if num % 2 == 1]

Questions about programming?Chat with your personal AI assistant