Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by magda_kudrycka
from collections import Counter
def licznik(word):
return Counter(word.upper().replace(' ', ''))
def verify_anagrams(first_word, second_word):
fw = licznik(first_word)
sw = licznik(second_word)
if (fw == sw):
return True
else:
return False
Nov. 27, 2016