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):