Single Choice
Not Set
QThe symmetric_difference() method returns a set that contains all items from both sets, but not the items that are present in both sets.
ID: #3810
Python Set MCQ
263 views
Question Info
#3810Q ID
Not SetDifficulty
Python Set MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
True
Question was not answered
Example:
A = {30, 20, 10}
B = {50, 30, 40}
print(A.symmetric_difference(B))
Output:
{40, 10, 50, 20}
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic