Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by kurosawa4434
from re import match
def verify_anagrams(first_word, second_word):
sort_chr = lambda x: sorted(ch for ch in x.lower() if match('[a-z]', ch))
return sort_chr(first_word) == sort_chr(second_word)
July 16, 2016