Your question is Check If String Is Palindrome. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Moz Pro processes short text tokens used in SEO analysis. Given a string s, determine whether it is a palindrome, meaning it reads identically from left to right and right to left.
Treat comparisons as case-sensitive. Every character, including spaces and punctuation, is significant. Return True if s is a palindrome and False otherwise.
s, a string containing zero or more characters.s is a palindrome.Aim for a single scan using two indices that move inward from opposite ends.
def is_palindrome(s):