GM Canada's vehicle software validation pipeline processes diagnostic tokens that may need palindrome checks. Given a single word, determine whether it reads the same from left to right and right to left.
Treat uppercase and lowercase letters as equivalent. The input contains only English letters, so punctuation and whitespace do not need special handling.
Implement is_palindrome(word), where:
word is a non-empty string containing English alphabetic characters.True if word is a palindrome, ignoring letter case.False otherwise.Use a two-pointer approach that compares matching characters from both ends and moves toward the center.
def is_palindrome(word):