drain(entries) that takes a set of raffle entries and removes them one at a time with pop() until the set is empty, returning a list of the popped values in the order they came out. (The order is arbitrary — your function must simply not crash on the final pop.)sorted(drain({'a', 'b'}))['a', 'b']
Both entries come out (in arbitrary order) and the set ends empty.
while the set is truthy, keep popping.
set.pop() removes and returns an arbitrary element.