Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = raw_input("please enter a word to check if palindrome:")
- if str(n) == str(n)[::-1]:
- print "This word is a palindrome."
- else:
- print "This word is not a palindrome."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement