Definition Remove all elements from this set. Syntax set.clear(x) Parameters x=set items Example The output is:
String set The method clear the set string value.
del(set) The function delete the set but the set.clear() only delete the item while the set remain in the Python memory.
set.clear() The method clear the set items.
|