Spring Deals - hours only!Up to 70% off on all courses and bundles.-Close
List basics
Lists with if statements and loops
Lists in functions
21. Functions with lists – practice 2


Perfect! Another exercise, then!


The template code is an implementation of the previous exercise. We've also added a variable named absolutes with a list of values to filter. Modify the function so that it does not modify the original absolutes list. Instead, return a new list. Call the function with the absolutes variable as an argument.

Stuck? Here's a hint!

To get a copy inside the function, use:

copy_list = list(input_list)