Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = input("enter a word to check if it is a palindrome: ")
- if x == x[::-1]:
- print("It is a palindrome")
- else:
- print("It is not a palindrome")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement