S=input("Enter a string: ")
if S == S[::-1]:
print("String is Palindrome")
else:
print("String is not Palindrome")
No comments:
Post a Comment