Exercise 8 · Chapter: SetsOptional+50 XP
Set Difference
You have two sets:
set_a = {1, 2, 3, 4, 5}
set_b = {3, 4, 5, 6, 7}Print the numbers that are only in set_a (not in set_b), sorted from smallest to largest.
Expected output
1 2
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.