Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Clear (probably) solution in Clear category for Verify Anagrams by Sebastian.M
def verify_anagrams(first_word, second_word):
letters=[]
first_word=first_word.lower()
second_word=second_word.lower()
for x in first_word:
if(x!=' '):
letters.append(x)
for x in second_word:
if(x!=' '):
if(not x in letters):
return False
else:
letters.remove(x)
if(letters):
return False
return True
Oct. 27, 2016