def is_odd(number): return number % 2 != 0 numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9] odds = list(filter(is_odd, numbers)) print(odds)