Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by Bartlomiej_Szal
def verify_anagrams(first_word, second_word):
first_word = first_word.lower()
first_word = first_word.replace(' ',"")
second_word = second_word.lower()
second_word = second_word.replace(' ',"")
if len(first_word) != len(second_word):
return False
for i in range(len(first_word)):
if first_word.count(first_word[i]) != second_word.count(first_word[i]):
return False
return True
Oct. 12, 2016