Your question is Anagram String Program. 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.
AvaTax integrations may receive equivalent tax-related identifiers with differences in capitalization, spaces, or punctuation. Write a function that determines whether two strings are anagrams after normalization.
Two strings are normalized by converting letters to lowercase and ignoring every character that is not a letter or digit. The strings are anagrams if their normalized forms contain exactly the same characters with the same frequencies.
Implement is_anagram(s, t), where s and t are strings. Return True if their normalized forms are anagrams, otherwise return False.
The function must not modify either input string. Unicode letters and digits should be considered valid alphanumeric characters by Python's isalnum() method.
def is_anagram(s, t):