Q. What is the output of the following program?
Code:
data = [x for x in range(5)] temp = [x for x in range(7) if x in data and x%2==0] print(temp)
β
Correct Answer: (B)
[0, 2, 4]
data = [x for x in range(5)] temp = [x for x in range(7) if x in data and x%2==0] print(temp)
You must be Logged in to update hint/solution