demo_ref_set_remove.py:
fruits = {"apple", "banana", "cherry"} fruits.remove("banana") print(fruits)
➜ begtut>python demo_set_remove.py
{'apple', 'cherry'}