A

Admin • 833K Points
Coach

Q. What does `set.add()` do?

  • (A) Adds an element at the start
  • (B) Adds an element to a set
  • (C) Appends to a list
  • (D) Inserts in a dictionary
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`add()` is used to add elements to a set.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.