Analyze FP

Report a typo

Consider the following Python code:

def is_even(num):
    return num % 2 == 0

def filter_evens(nums):
    return list(filter(is_even, nums))

numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
evens = filter_evens(numbers)
print(evens)

Why is this code functional?

Select one option from the list
___

Create a free account to access the full topic