clear()
` method. Here's an example :# create a set
my_set = {1, 2, 3, 4, 5}
# clear the set
my_set.clear()
# print the set
print(my_set)
set()
# create a set
my_set = {1, 2, 3, 4, 5}
# create a new empty set
my_set = set()
# print the set
print(my_set)
set()