Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Boring solution in Clear category for Verify Anagrams by Vulwsztyn
def verify_anagrams(fw, sw):
sw=sw.upper()
fw=fw.upper()
fw=fw.replace(" ","")
sw=sw.replace(" ","")
s=0
if len(fw)!=len(sw):
return False
for i in range(len(fw)):
#print (fw[i], fw.count(fw[i]), sw.count(fw[i]))
if fw.count(fw[i])!=sw.count(fw[i]) and fw[i]!=" ":
s=1
break
if s==0:
return True
else:
return False
Oct. 31, 2016