Introduction
Quiz
2. Question 1
Summary

Instruction

Let's start off with a recap of lists.

Exercise

Write a function named is_palindrome(word) that takes a word and returns either True or False.

A palindrome is a word that reads the same backwards and forwards (e.g. madam).

Hint: you can use list(word) to convert a string into a list of letters.

Stuck? Here's a hint!

You can compare the first letter (letters[0]) with the last letter (letters[len(letters)-1]). If the letters are equal, delete the first and last letters and compare again. Repeat until you reach the middle of the word, or until some letters do not match.