#C7055. Palindrome Check Ignoring Case and Non-Alphanumeric Characters
Palindrome Check Ignoring Case and Non-Alphanumeric Characters
Palindrome Check Ignoring Case and Non-Alphanumeric Characters
Your task is to determine whether the given string is a palindrome. The check should ignore the case and any non-alphanumeric characters.
Recall that a palindrome is a word, phrase, or sequence that reads the same backward as forward when ignoring punctuation, case, and spacing. For example, the string "A man, a plan, a canal: Panama" is considered a palindrome.
inputFormat
The input consists of a single line containing a string. The string may include spaces, punctuation, and special characters.
outputFormat
Print a single line: output True
if the string is a palindrome, or False
otherwise. The output should exactly match these values.
racecar
True