Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name=str(input("enter name: "))
- rname=name[::-1]
- if(name==rname):
- print("Yes,the given string is palindrome")
- else:
- print("No, the given string is not a palindrome")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement