-
Notifications
You must be signed in to change notification settings - Fork 153
Update is_anagram.py #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This only invert the string, won't check if its na anagram :(
print(is_anagram('binary', 'brainy')) should be True, but returns False
@Krasiu thank you for raising the pull request. But Anagrams doesn't work this way. I think what your code is doing: is actually checking whether the strings are palindrome or not ?
Two words are anagrams of one another if their letters can be rearranged to form the other word.
Two words are palindrome if you reverse one to get another e.g. radar
No description provided.