#C13927. Palindrome Checker
Palindrome Checker
Palindrome Checker
Given a string S, determine whether it is a palindrome. A palindrome is a word, phrase, or sequence that reads the same backward as forward after converting all uppercase letters to lowercase and removing all non-alphanumeric characters. Formally, if we let S_clean be the string after processing, the condition for a palindrome is given by:
$$S_{clean} = \text{reverse}(S_{clean})$$
Your task is to implement a program that reads a single line from standard input and outputs True
if the string is a palindrome, or False
otherwise.
inputFormat
The input consists of a single line containing the string S.
outputFormat
Output a single line: True
if the processed string is a palindrome, otherwise False
.
A man, a plan, a canal, Panama
True