Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Verify Anagrams by Pavellver
def verify_anagrams(a,b):
return sorted(a.lower().replace(' ','')) == sorted(b.lower().replace(' ',''))
print("Example:")
print(verify_anagrams("Programming", "Gram Ring Mop"))
assert verify_anagrams("Programming", "Gram Ring Mop") == True
assert verify_anagrams("Hello", "Ole Oh") == False
assert verify_anagrams("Kyoto", "Tokyo") == True
print("The mission is done! Click 'Check Solution' to earn rewards!")
March 24, 2023
Comments: