🔥
0
0 XP
Lv.1 Beginner
Log In
Home
/
Python
/
Getting Started
/
Sets
/
Fix The Union
/
Exercise
Fix the Union
This program tries to combine two sets, but uses the wrong operator. Fix it!
Expected output:
text
5
💡
Hints
?
Hint 1
Reveal (-5 XP)
🔒
Hint 2
🔒
Hint 3
python
Reset
9
1
2
3
4
a
=
{
1
,
2
,
3
}
b
=
{
3
,
4
,
5
}
combined
=
a
+
b
print
(
len
(
combined
))
▶ Run
Visualize
✓ Submit
← Set Difference
Tag Manager →