def are_anagrams(string1, string2):
string1 = list(string1.lower())
string1.sort()
string2 = list(string2.lower())
string2.sort()
return string1 == string2
If you thought: "Hey, dude, what's an anagram??", take a look here first. Also, this is a very nice online app that finds anagrams for words you provide: http://wordsmith.org/anagram/