What will the following code return?
a = [1, 2, 2, 3, 4] res = {x for x in a if x % 2 == 0} print(res)
[2, 4]
{2, 2, 4}
{2, 4}
(2, 4)
This question is part of this quiz :