How to clear out a set in python

51

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

# Output:
# set()

Comments

Submit
0 Comments