Vidyalelo
Python · Q6

Python Sets MCQs: Exam

Programming · Python · question 6

Q6

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

A.
Returns a new set with elements from both sets
Answer
B.
Combines elements of two sets
C.
Returns the intersection of two sets
D.
Returns the difference of two sets

Answer: Option A

Solution

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