List Shortcuts Exercise
Question 1 of 4
What does this list comprehension create?
result = [x * 2 for x in [1, 2, 3, 4, 5] if x % 2 == 0]4, 8
2, 4
1, 3, 5
2, 4, 6, 8, 10
What does this list comprehension create?
result = [x * 2 for x in [1, 2, 3, 4, 5] if x % 2 == 0]4, 8
2, 4
1, 3, 5
2, 4, 6, 8, 10