Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
verify_anagrams solution in Clear category for Verify Anagrams by dannedved
from collections import Counter
def verify_anagrams(first_word, second_word):
return Counter(first_word.lower().replace(" ","")) == Counter(second_word.lower().replace(" ",""))
July 10, 2019