demo_set_discard.py:
thisset = {"apple", "banana", "cherry"} thisset.discard("banana") print(thisset)
➜ begtut>python demo_set_discard.py
{'cherry', 'apple'}