Created
November 6, 2016 06:11
-
-
Save Wingless-Archangel/99928d5e5a42d5c4f47e80ce40c5f85c to your computer and use it in GitHub Desktop.
find out the string is palindrome or not.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
def main(): | |
text = input("Please enter the text to test : ") | |
if text == text[::-1]: | |
print("This text is palindrome.") | |
else: | |
print("This text is not palindrome.") | |
if __name__=='__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment