SyntaxFix
Write A Post
Hire A Developer
Questions
Simple Solution in Python:
def anagram(s1,s2): # Remove spaces and lowercase letters s1 = s1.replace(' ','').lower() s2 = s2.replace(' ','').lower() # Return sorted match. return sorted(s1) == sorted(s2)