The TD mobile banking app receives reference strings that may contain letters, digits, spaces, and punctuation. Write a function that determines whether the reference reads the same forward and backward after ignoring non-alphanumeric characters and letter case.
Return True when the normalized string is a palindrome; otherwise, return False.
s, a string containing printable ASCII characters.s is a palindrome after normalization.str.isalnum() is true and compares letters without regard to case.def is_palindrome(s):