OnlinePython

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]