Nalaganje naloge…
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:
Prijavite se za ogled zgodovine oddaj
PrijavaPrijavite se za uporabo mentorja UI
PrijavaThey run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.