What is the output of the following code:
set1 = {1, 2, 3}
set2 = {2, 3, 4}
print(set1.difference(set2))
set2 = {2, 3, 4}
print(set1.difference(set2))
A. {1}
B. {2, 3}
C. {1, 2, 3, 4}
D. {4}
Answer: Option A

Join The Discussion