Fix is_anagram
Created on Dec. 15, 2023 by Julien Palard
I've written a function called is_anagram.
This function takes two parameters:
left: it expects just one word, as a Pythonstr.right: it also expects just one word, as a Pythonstr.
the function should return True if the two words are anagrams,
False otherwise.
Sadly there's a small error in my implementation (try to submit it if you don't catch it), can you fix it?
Just in case you messed with the code too much and want to start fresh, here it is:
def is_anagram(left, right):
left_letters = sorted(left)
right_letters = sorted(right)
return left_letters = right_letters
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts:
- Ctrl-Enter: Send your code to the correction bot.
- Escape: Get back to the instructions tab.