Python Set clear() Method

Python Set clear() Method

  • The clear() method removes all elements in a set.

Syntax

  • set.clear()

Parameter Values

  • No parameters

 

 

Comments