Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = str(input("Pick a word to see if it is a palindrome: "))
- def check():
- if word[::-1] == word:
- print("Your word is a palindrome!")
- else:
- print("Your word isn't a palindrome.")
- print(check())
Add Comment
Please, Sign In to add comment