Question #310281

Palindrome Pairs




Sample input



Was it car or a cat i saw

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS