I want to create a code that will return \"true\" (if I type in a palindrome regardless of case or if there are special characters in it), and \"false\" otherwise. The code I ha
You may get just alphanumeric character in your string;
re.sub(r'[^a-zA-Z0-9]+', '', your_string).lower()
By the way this one works, if you ignores non-ASCII chars.