Two words are anagrams if they use exactly the same letters. Write is_anagram(a, b), ignoring case and spaces. is_anagram("Listen", "Silent") → True.
is_anagram('Listen', 'Silent')
→ Trueis_anagram('Data', 'Date')
→ FalseSubmit runs 5 tests, including hidden edge cases.
Run your code to see the output here.