How to clear out a set in python

46

mySet = {1, 2, 3}
mySet.clear()
print(mySet)

# Output:
# set()

Comments

Submit
0 Comments