← back to unit
Medium
# power tools medium
The Secret Alphabet
Every wizard's name hides a mini-alphabet: its different letters, in order. 🧙
You get a lowercase name. Print its unique letters, sorted alphabetically, glued into one string.
Example:
Input: name = "merlin"
Output: eilmnr
set(name) collapses to the unique letters {m, e, r, l, i, n}, and sorting them alphabetically spells eilmnr.
💡 need a hint?
pt-secret-alphabet.py🔒 given lines are locked — write your code in between
loading...