A

Admin • 833K Points
Coach

Q. Which method is used to remove a specific item from a set?

  • (A) delete()
  • (B) discard()
  • (C) remove()
  • (D) pop()
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`remove()` deletes a specific element from a set. If not present, it raises an error.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.