πŸ“Š Python
Q. What is the output of list(set([1, 2, 2, 3]))?
  • (A) [1, 2, 3]
  • (B) [1, 2, 2, 3]
  • (C) [1, 3, 3]
  • (D) [1, 1, 2, 3]
πŸ’¬ Discuss
βœ… Correct Answer: (A) [1, 2, 3]

Explanation: set removes duplicates, list converts it back to a list.

Explanation by: Mr. Dubey
set removes duplicates, list converts it back to a list.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate