Vidyalelo
Python · Q68

Python Sets MCQs: Exam

Programming · Python · question 68

Q68

What is the purpose of the difference() method for sets?

A.
Returns a new set with elements from the first set that are not in the second set
Answer
B.
Returns the union of two sets
C.
Returns the common elements of two sets
D.
Returns the symmetric difference of two sets

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board