Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Use Counter solution in Clear category for Verify Anagrams by heitor
from collections import Counter
def verify_anagrams(first_word, second_word):
cleanA = first_word.lower().replace(' ','')
cleanB = second_word.lower().replace(' ','')
ctrA = Counter(cleanA)
ctrB = Counter(cleanB)
return ctrA == ctrB
July 28, 2017