Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input("Give me a word: ")
- def palindrome_or_not(word):
- reversed_word = word[::-1]
- if word.strip() == reversed_word.strip():
- print("Is's a palindrome")
- else:
- print("It is not a palindrome")
- palindrome_or_not(word)
Advertisement
Add Comment
Please, Sign In to add comment