subtraction in sets python code example Example: subtraction in sets python A = {10, 20, 30, 40, 80} B = {100, 30, 80, 40, 60} print (A - B)