↻
⏵︎ Run
#initialize sets set_1 = {'a', 'b', 'c', 'd'} set_2 = {'a', 'b', 'd', 'm'} #intersection of sets set_output = set_1.intersection(set_2) print(set_output)
Output