#K92657. Palindrome Checker
Palindrome Checker
Palindrome Checker
Given a string, determine whether it is a palindrome. A palindrome is a string that reads the same forward and backward after removing all non-alphanumeric characters and ignoring letter case. Use LaTeX for any formulas if needed. For instance, the condition can be expressed as \( s = \text{reverse}(s) \), where \( s \) is the filtered string.
Your task is to read a string from the standard input and print True
if it is a palindrome according to the above criteria, or False
otherwise.
inputFormat
The input consists of a single line containing a string \( s \) that may include spaces, punctuation, and mixed case letters.
outputFormat
Print a single line: True
if the given string is a palindrome under the specified conditions; otherwise, print False
.
A man, a plan, a canal: Panama
True