Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. x = input("enter a word to check if it is a palindrome: ")
  2. if x == x[::-1]:
  3. print("It is a palindrome")
  4. else:
  5. print("It is not a palindrome")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement