Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. a=str(input("Please enter a string: "))
  2. b=a[::-1]
  3. if a==b:
  4. print("Congratulations! You entered a palindrome")
  5. else:
  6. print("You did not enter a palindrome")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement