Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Conversation

@dvontrec
Copy link
Contributor

Added palindrome check using recursion to check words input by the user

Copy link
Collaborator

@christianbender christianbender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work! I have some requests

return checkString(string[1 : -1])
else:
return False
else: return string[0] == string[-1]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put the return string[0] == string[-1] in the next line.

return False
else: return string[0] == string[-1]

print(checkString(input("check word for palindrome: "))) No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put in a main-function with some test cases

Copy link
Member

@abranhe abranhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for your contribution to The All ▲lgorithms Project. Without people like you submitting Pull Requests we couldn't run this project. You rock @dvontrec

@abranhe abranhe merged commit 722817f into AllAlgorithms:master Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants