#C337. Check Palindrome
Check Palindrome
Check Palindrome
Given a string s
, determine whether it is a palindrome. A string is a palindrome if it reads the same forwards and backwards after converting all letters to lowercase and removing any non-alphabetical characters (including spaces and punctuation). For instance, the string "A Santa at NASA" is considered a palindrome.
Your task is to implement a function that, after normalizing the input string, returns True
if it is a palindrome and False
otherwise.
inputFormat
The input consists of a single line containing the string s
. This string may include spaces, punctuation, and mixed-case letters.
outputFormat
Output a single line: True
if the normalized string is a palindrome, or False
otherwise.
A Santa at NASA
True