Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. n = raw_input("please enter a word to check if palindrome:")
  2.  
  3. if str(n) == str(n)[::-1]:
  4. print "This word is a palindrome."
  5. else:
  6. print "This word is not a palindrome."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement