The method _______ is used to remove the first occurrence of a specified value from a list.

  • delete() Method
  • discard() Method
  • pop() Method
  • remove() Method
The 'remove()' method is used to remove the first occurrence of a specified value from a list in Python. It raises an error if the value is not found in the list.
Add your answer
Loading...

Leave a comment

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