How To Remove Elements From a Set using discard() function in python
# discard() function will not raise an error if the given value to remove
# does not exist within the set
mySet = {1, 2, 3}
mySet.discard(1)
print(mySet)
# Output:
# {2, 3}
How To Remove Elements From a Set using discard() function in python
# discard() function will not raise an error if the given value to remove
# does not exist within the set
mySet = {1, 2, 3}
mySet.discard(1)
print(mySet)
# Output:
# {2, 3}