Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by maciejmoscicki
def verify_anagrams(first_word, second_word):
slowo1=[]
slowo2=[]
first_word = ''.join(first_word.split())
second_word = ''.join(second_word.split())
print(first_word, second_word)
first_word=first_word.lower()
second_word=second_word.lower()
print(first_word, second_word)
first_word=sorted(first_word)
second_word=sorted(second_word)
print(first_word, second_word)
if(first_word==second_word):
return True
else:
return False
print (verify_anagrams("Programming", "Gram Ring Mop"))
Oct. 7, 2016