Given a string s, return true if it is a palindrome and false otherwise. A palindrome reads the same forward and backward. For this problem, compare characters case-insensitively and ignore all non-alphanumeric characters.
Problem
Given a string s, return true if it is a palindrome and false otherwise. A palindrome reads the same forward and backward. For this problem, compare characters case-insensitively and ignore all non-alphanumeric characters.
Practice PythonPython 3.10
Open on desktop for the full Python editor with syntax highlighting and autocomplete.