You are on page 1of 1

str=input("enter a string: ")

rev=reversed(str)
if list(str)==list(rev):
print(str,"is palindrome")
else:
print(str,"is not palindrome")

You might also like