Programming Language › Python Set MCQ › Question #3810
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 310 views
Question Info
#3810Q ID
Not SetDifficulty
Python Set MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A False ✔ ✖
  • B True ✔ ✖
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}
Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue Programming Language where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.