Text=input("Enter a text you desired: ")
Reverse_text=Text[::-1]
if Text==Reverse_text:
print("The given string is a palindrome")
else:
print("The given string is not a palindrome")
A sample of output is provided as below:
You can run this code online here.