Source Code:
(back to article)
my_set = {1, 2, 3, 4} my_set.remove(4) print(my_set) # {1, 2, 3} my_set.discard(3) print(my_set) # {1, 2}
Result:
Report an issue