A

Admin • 825.56K Points
Coach

Q. What is the result of set('aabcc')?

  • (A) {'a', 'b', 'c'}
  • (B) ['a', 'a', 'b', 'c', 'c']
  • (C) {'aabcc'}
  • (D) ('a', 'b', 'c')
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
set() removes duplicates and returns unique elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.