Computer Science, asked by Anthaea, 2 months ago

Solve the python program

Attachments:

Answers

Answered by lovelychristy143
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