#Sets are unordered, so when using the pop() method, you do not know which item that gets removed. Kind of random generation :)
Boys_set = set(Boy) Girls_set = set(Girl)
print(f'Before : {len(Boys_set)}')
def boyname():
result = Boys_set.pop()
print(result)
#print(f"Remaining Boys: {Boys_set}")
if result not in Boys_set:
print('Success!')
boyname() print(f'After : {len(Boys_set)}')
#To pop all Boys randomly length=len(Boys_set) for i in range(0,length): boyname() print(f'Remaining Boys: {len(Boys_set)}')