Run
set_1 = {'a', 'b', 'c'} item = 'f' if item in set_1: set_1.remove('f') else: print('Element is not in set. Action required.')
Output