demo_set_remove.py:
thisset = set(("apple", "banana", "cherry")) thisset.remove("banana") print(thisset)
C:\Users\My Name>python demo_set_remove.py
{'cherry', 'apple'}