• Not sufficient tests


I would like to give some feedback about ...

From: https://checkio.org/mission/verify-anagrams/solve/


Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36

My solution passes all your tests:

def verifyanagrams(firstword, secondword): first = firstword.lower() second = second_word.lower() for c in first: if c.isspace() or (not c.isalpha()): continue if first.count(c) != second.count(c): return False return True

But this solution is incorrect and cant pass:

assert verify_anagrams("Hello", "Hello baby") == False, "Hello baby"