Ad

anagrams are case insensitive

Code
Diff
  • def anagrams(s1, s2):
        return sorted(s1.lower()) == sorted(s2.lower())
    
    
    • def anagrams(s1, s2):
    • return sorted(s1) == sorted(s2)
    • return sorted(s1.lower()) == sorted(s2.lower())