Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Krasiu wants to merge 1 commit into devAmoghS:master from Krasiu:patch-1
Closed

Update is_anagram.py #5

Krasiu wants to merge 1 commit into devAmoghS:master from Krasiu:patch-1

Conversation

Copy link

@Krasiu Krasiu commented Jun 5, 2019

No description provided.

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 reacted with thumbs up emoji

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /