← All challenges
✓ Solved
Anagram Checker
Do two words use exactly the same letters, just rearranged?
🟡 MediumDifficulty
The challenge
For each pair in [("listen", "silent"), ("hello", "world"), ("triangle", "integral")], print yes if the two words are anagrams of each other (same letters, same counts, different order) or no if they aren't -- one line per pair, in order.
🧠 Need a hint? (Python)
Sort the letters of each word (sorted(a) == sorted(b)) -- two anagrams produce identical sorted letter lists.
🚀
Like solving these?
Structured courses, hands-on exercises, and real multi-file projects are waiting -- your first project unlock is free.
Create a free account