A
Q. What will be the output of the following code snippet?
Code:
a = [1, 2, 3, 4]
b = [3, 4, 5, 6]
c = [x for x in a if x not in b]
print(c)
b = [3, 4, 5, 6]
c = [x for x in a if x not in b]
print(c)
- Correct Answer - Option(A)
- Views: 30
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.