demo_ref_set_pop2.py:
fruits = {"apple", "banana", "cherry"} x = fruits.pop() print(x)
C:\Users\My Name>python demo_set_pop2.py
apple