Indlæser opgaven…
A palindrome can be checked even inside a regular phrase with spaces, punctuation, and mixed letter case. Given a string s, consider only letters and digits, and ignore case. Return True if the cleaned string reads the same from left to right and from right to left, otherwise return False.
"A man, a plan, a canal: Panama"True"race a car"False" "Truedef is_palindrome(s: str) -> bool:
Log ind for at se indsendelseshistorik
Log indLog ind for at bruge AI-mentor
Log indThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.