Palindrome Pairs
Sample input
Was it car or a cat i saw
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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment