Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by Tinus_Trotyl
def verify_anagrams(first_word, second_word):
first_word, second_word = first_word.replace(' ',''), second_word.replace(' ','') #remove spaces
first_word, second_word = first_word.lower(), second_word.lower() #convert to lowercase
first_word, second_word = sorted(first_word), sorted(second_word) #convert to sorted list
return first_word == second_word #and compare
April 3, 2017