Q. How do you create a set with elements 1, 2 and 3?

  • (A) set([1, 2, 3])
  • (B) {1, 2, 3}
  • (C) Both option1 and option2
  • (D) set(1, 2, 3)
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both option1 and option2
Explanation: Both `set([1, 2, 3])` and `{1, 2, 3}` create a set with those elements.
Explanation by: Mr. Dubey
Both `set([1, 2, 3])` and `{1, 2, 3}` create a set with those elements.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
84
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate