Answer to Question #310281 in Python for Palindrome Pairs

Question #310281

Palindrome Pairs




Sample input



Was it car or a cat i saw

1
Expert's answer
2022-03-12T12:46:11-0500
s = input()
ss = ''.join(s.split())
ss = ss.lower()


if ss == ss[::-1]:
    print("Is a palindrome")
else :
    print("Is not a palindrome")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS