Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Counters solution in Speedy category for Verify Anagrams by Renelvon
from collections import Counter
import string
letters = lambda s: Counter(c for c in s.upper() if c.isalpha())
verify_anagrams = lambda s1, s2: letters(s1) == letters(s2)
May 16, 2014
Comments: