How would you determine if a word was a palindrome programmatically?
Implement is_palindrome(word) to return True when the word reads the same forward and backward, and False otherwise. The comparison is case-sensitive and uses each character exactly as provided.
word.word is a palindrome.def is_palindrome(word):