A

Akash Lawaniya • 9.58K Points
Tutor III

Q. What will be the output of the following code snippet?

Code:
s1 = {1, 2, 3, 4, 5}
s2 = {2, 4, 6}
print(s1 ^ s2)
  • (A) {1, 2, 3, 4, 5}
  • (B) {1, 3, 5, 6}
  • (C) {2, 4}
  • (D) None of the above
  • Correct Answer - Option(B)
  • Views: 245
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics