Pergunta de entrevista da empresa Google

They asked me how to create a list of items using Python. For the harder question, they asked me to create a function to figure out if a word is a palindrome.