Examveda

What is the output of the following code:
set1 = {1, 2, 3}
set2 = {2, 3, 4}
print(set1.difference(set2))

A. {1}

B. {2, 3}

C. {1, 2, 3, 4}

D. {4}

Answer: Option A


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python