Fixed Anagram
def is_anagram(a_word, b_word):
return sorted(a_word.replace(' ', '')) == sorted(b_word.replace(' ', ''))
Show when xfail passes.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def is_anagram(a_word, b_word):
return sorted(a_word.replace(' ', '')) == sorted(b_word.replace(' ', ''))
Show when xfail passes.