Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by PawelBubak
def verify_anagrams(first_word, second_word):
lista = []
list = []
if first_word:
for i in first_word:
if i != " ":
i = i.upper()
lista[len(lista):] = [i]
lista.sort()
if second_word:
for i in second_word:
if i != " ":
i = i.upper()
list[len(list):] = [i]
list.sort()
print(lista)
print(list)
if list == lista and len(lista)==len(list):
return True
else:
return False
Nov. 18, 2016