πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) {1, 3, 5, 6}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
371
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akash Lawaniya
Publisher
πŸ“ˆ
86%
Success Rate