logo CodeStepByStep logo

lambda_tracing2

Language/Type: Python functional programming lambdas

What is the output of the following code?

numbers = [10, -28, 33, 28, -49, 56, 49]
numbers2 = [n for n in numbers if n % 2 == 0]
print(numbers2)
output

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.