A
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)
temp = [x for x in range(7) if x in data and x%2==0]
print(temp)
- Correct Answer - Option(B)
- Views: 16
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.