SQLDAXExcelPython
Leaderboard
Core PythonEasy10 points

Check for anagrams

Complete are_anagrams(a, b) so it returns True when both words use exactly the same letters, ignoring capital letters.

How your answer is tested

After your code, this runs and its result is checked:

result = [are_anagrams("Listen", "Silent"), are_anagrams("data", "date"), are_anagrams("abc", "abcd")]
Show solutionLifetime

Real Python running in your browser through Pyodide, with pandas available. Nothing you type is sent to a server unless you save a score.

Python
Loading editor…

Press Ctrl+Enter or Run to see the result here.