Exercise 9 · Chapter: SetsOptional+50 XP
Fix the Union
This program tries to combine two sets, but uses the wrong operator. Fix it!
Expected output:
5
Need a hint?
3 available · costs 5 XP each
python
a = {1, 2, 3}
b = {3, 4, 5}
combined = a + b
print(len(combined))
Output
Run your code to see the output here.