Python Set remove() Method

Python Set remove() Method

  • The remove() method searches for the given element in the set and removes it.

Syntax

  • set.remove(item)

Parameter Values

  • item - The item to search for, and remove

 

 

Comments