harbor run -t openthoughts/tasktrove-exp-rpt-e2egit-v2-e2egit-0076
harbor download openthoughts/tasktrove-exp-rpt-e2egit-v2-e2egit-0076
Task Description:
Implement a function called filter_even_numbers in the file /app/numbers.py that takes a list of integers as an argument and returns a new list containing only the even numbers from the original list.
filter_even_numbers
/app/numbers.py
def filter_even_numbers(numbers: List[int]) -> List[int]:
Input: [1, 2, 3, 4, 5]
[1, 2, 3, 4, 5]
Output: [2, 4]
[2, 4]
Input: [-3, -2, -1, 0, 1, 2, 3]
[-3, -2, -1, 0, 1, 2, 3]
Output: [-2, 0, 2]
[-2, 0, 2]