Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by jacekgrycza
def verify_anagrams(fi,se):
d=[]
f=''.join(i for i in fi if i != ' ')
s=''.join(i for i in se if i != ' ')
f=f.lower()
s=s.lower()
for i in range(0,len(f)):
for j in range(0,len(s)):
if (f[i]==s[j] and j not in d):
d.append(j)
break
print(d)
if(len(d)==len(s) and len(f)==len(s)):
return True
else:
return False
Oct. 20, 2016