The _______ method is used to remove and return an arbitrary element from a set.

  • clear()
  • discard()
  • pop()
  • remove()
The 'pop()' method is used to remove and return an arbitrary element from a set. It is useful when you want to remove an element without specifying which one.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *