Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Counter solution in Uncategorized category for Verify Anagrams by natsuki
from collections import Counter
def verify_anagrams(first_word, second_word):
def get_counter(s):
return Counter(s.upper().replace(' ', ''))
return get_counter(first_word) == get_counter(second_word)
May 7, 2014
Comments: