Carregando o exercício…
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:
Entre para ver seu histórico de envios
EntrarEntre para usar o AI Mentor
EntrarThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.