Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Fix the Remove

This program tries to remove "mango" from a set, but mango isn't in the set so it crashes! Fix it so it doesn't crash.

Expected output:

text
3

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python
fruits = {"apple", "banana", "cherry"}
fruits.remove("mango")
print(len(fruits))