← back to unit
Medium
# puzzle gauntlet medium
The Lonely Glove
The lost-and-found gloves all match up into pairs — except ONE glove whose partner is truly gone. 🧤
You get the glove tags (every tag appears an even number of times, except one tag appearing an odd number of times). Print the lonely tag.
Example:
Input: tags = ["red", "blue", "red", "green", "blue"]
Output: green
"red" and "blue" each appear twice (even), but "green" appears only once (odd) — the lonely tag.
💡 need a hint?
pg-lonely-glove.py🔒 given lines are locked — write your code in between
loading...