A

Admin • 833K Points
Coach

Q. What is the output of the following?

Code:
print(set([1,2,2,3,4,4]))
  • (A) {1, 2, 3, 4}
  • (B) [1, 2, 2, 3, 4, 4]
  • (C) (1, 2, 3, 4)
  • (D) {1, 2, 2, 3, 4, 4}
  • Correct Answer - Option(A)
  • Views: 30
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Sets automatically remove duplicates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.