Skip to content

Conversation

Krasiu
Copy link

@Krasiu Krasiu commented Jun 5, 2019

No description provided.

@luiz-surian
Copy link
Contributor

This only invert the string, won't check if its na anagram :(
print(is_anagram('binary', 'brainy')) should be True, but returns False

@devAmoghS
Copy link
Owner

@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

@devAmoghS devAmoghS closed this Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants