demo_ref_set_pop.py:
fruits = {"apple", "banana", "cherry"} fruits.pop() print(fruits)
➜ begtut>python demo_set_pop.py
{'apple', 'cherry'}