pop()
` method in a set removes and returns an arbitrary element from the set. last
" element in a set, since the elements are not ordered. pop()
` method to remove an element from a set :# create a set
my_set = {"apple", "banana", "cherry"}
# remove and return an arbitrary element
removed_element = my_set.pop()
print("Removed element:", removed_element)
print("Updated set:", my_set)
Removed element: banana
Updated set: {'cherry', 'apple'}