Your question is Check Anagram Using Built-Ins. 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.
A GlobalLogic code-review utility needs to verify whether two submitted strings contain exactly the same characters with the same frequencies. Implement a function that determines whether the strings are anagrams using Python built-in functions.
Two strings are anagrams if one can be rearranged to form the other. Treat uppercase and lowercase letters as different characters, and do not ignore spaces or punctuation.
Implement are_anagrams(s, t), where s and t are strings. Return True if they contain identical characters with identical frequencies, regardless of order. Otherwise, return False.
def are_anagrams(s, t):