Run
set_1 = {'a', 'b', 'c', 'd'} list_1 = ['a', 'm', 'k'] print(f"set_1 : {set_1}") set_1.symmetric_difference_update(list_1) print(f"set_1 after update : {set_1}")
Output