Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=str(input("Please enter a string: "))
- b=a[::-1]
- if a==b:
- print("Congratulations! You entered a palindrome")
- else:
- print("You did not enter a palindrome")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement