Question 1311Quiz 452
Programming and algorithmsWhat will be the output of the following Python code? def set_operations(set1, set2): return set1.difference(set2), set2.difference(set1) a = {1, 2, 3, 4} b = {3, 4, 5, 6} diff_a_b, diff_b_a = set_operations(a, b) print("Difference A-B:", diff_a_b) print("Difference B-A:", diff_b_a)
L09 · Programming and algorithms with Python