Guest User

Untitled

a guest
Nov 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. word = str(input("Pick a word to see if it is a palindrome: "))
  2.  
  3. def check():
  4.  
  5. if word[::-1] == word:
  6. print("Your word is a palindrome!")
  7.  
  8. else:
  9. print("Your word isn't a palindrome.")
  10.  
  11. print(check())
Add Comment
Please, Sign In to add comment