Python set.clear() Method
The clear() method removes all elements from the set.
Syntax
set.clear()
Parameters
No parameters.
Return Value
None.
Example
Using the clear() method:
Output
Click Run to execute your code
Enjoying these tutorials?