Web Analytics

Python set.clear() Method

Set Method โ€ข Clear

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

Related Functions