Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Add to Set

Start with an empty set. Read 5 items from input (some may be repeated). Print the number of unique items, then print each unique item sorted alphabetically.

Example: if you add apple, banana, apple, cherry, banana:

text
3
apple
banana
cherry

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python