Created
March 29, 2017 18:56
-
-
Save akshayxarora/4f645cf91f23d859eecbee8d2ab8243d to your computer and use it in GitHub Desktop.
palindrome
This file contains hidden or 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
str = raw_input("Enter the string to be checked ") | |
if (str[::1])==(str[::-1]): | |
print "Palindrome" | |
else: | |
print "Not a palindrome" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment