A

Admin • 832.27K Points
Coach

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]
  • Correct Answer - Option(A)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.