A General Motors vehicle diagnostic component receives short string identifiers that may need palindrome validation. Write a function that determines whether a string reads the same from left to right and right to left.
Compare characters exactly as provided. The comparison is case-sensitive, and spaces, punctuation, and digits are treated as ordinary characters. Do not modify, filter, or normalize the input string.
Implement is_palindrome(s), where:
s is a Python string.True if s is a palindrome.False otherwise.def is_palindrome(s):