Solve the python program
Attachments:
Answers
Answered by
1
Explanation:
def ispalindrome(s):
rev=''.join (reversed(s))
if(s==rev):
return 1
return 0
s=input()
ans=ispalindrome(s)
if(ans):
print("String is palindrome)
else:
print(“String is not a palindrome”)
Similar questions