Your question is Anagram Testing Approach. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Paddle Billing may need to compare two normalized text labels and determine whether they contain exactly the same characters. Given two lowercase English words, return whether one is an anagram of the other.
Two words are anagrams when they contain the same characters with the same frequencies, regardless of order. Each input contains only lowercase letters from a through z, so do not ignore spaces, punctuation, or letter case.
Implement are_anagrams(word1, word2).
word1 and word2, containing lowercase English letters.True if the strings are anagrams, otherwise return False.def are_anagrams(word1, word2):