Exerpad
Exercise 10 · Chapter: SetsOptional+50 XP

Tag Manager

You start with these tags:

tags = {"python", "coding", "fun"}

Read an action (add or remove) and a tag name from input. Perform the action, then print all tags sorted alphabetically.

Example: if action is add and tag is games:

coding
fun
games
python
Need a hint?
3 available · costs 5 XP each
python

Output
Run your code to see the output here.