Your question is Palindrome String Method. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
In QA checks for Finastra FusionFabric.cloud, reference strings may contain spaces, punctuation, and inconsistent capitalization. Implement a method that determines whether a string is a palindrome after ignoring non-alphanumeric characters and comparing letters without regard to case.
Given a string s, return True if the sequence of alphanumeric characters reads identically from left to right and right to left after case normalization. Return False otherwise. An empty string, or a string containing no alphanumeric characters, is considered a palindrome.
Use Python's str.isalnum() to identify alphanumeric characters and str.lower() for case-insensitive comparison. The input is one string, and the output is a Boolean.
def is_palindrome(s):