I would like to give some feedback about ...
From: https://py.checkio.org/mission/verify-anagrams/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 OPR/39.0.2256.71
Hello and Hell are anagrams aren't they?
But while checking it's said that's not true. Why?
4 Letter Words You can Make With HELLO
hell helo hole
My code:
def verifyanagrams(firstword, secondword):
a = (secondword.replace(' ','')).lower()
b = first_word.lower()
return True if all((a).count(i) == (b).count(i)
for i in (a)) else False
Created at: Sept. 26, 2016, 3:05 p.m.; Updated at: Sept. 27, 2016, 3:27 p.m.