0 out of 464 challenges solved
Write a Python function `remove_odd(numbers)` that takes a list of integers as input and returns a new list with all odd numbers removed. The function should not modify the original list. #### Example Usage ```python [main.nopy] remove_odd([1, 2, 3, 4, 5]) # Output: [2, 4] remove_odd([10, 15, 20, 25]) # Output: [10, 20] remove_odd([2, 4, 6]) # Output: [2, 4, 6] remove_odd([1, 3, 5]) # Output: [] ``` #### Constraints - The input list will only contain integers. - The function should return a new list and not modify the input list.
def remove_odd(numbers):
"""
Removes all odd numbers from the input list and returns a new list.
Args:
numbers (list): A list of integers.
Returns:
list: A new list with all odd numbers removed.
"""
# Placeholder for the solution
pass