Answer:
In Python:
strng = input("String: ")
revstrng = strng[::-1]
if strng == revstrng:
print("True")
else:
print("False")
Step-by-step explanation:
This prompts user for string input
strng = input("String: ")
This reverses the string input by the user
revstrng = strng[::-1]
This checks if strings and the reverse string are equal
if strng == revstrng:
Prints True, if yes
print("True")
Prints False, if otherwise
else:
print("False")