< Back

Post Lab 17

Post labs are to be done individually. Sharing files between students is not allowed. Doing so is an Academic Integrity violation, and will be treated as such.


A palindrome is text that is the same forward and backward. In this activity you will demonstrate your knowledge of string traversal by writing a function that determines if a word is a palindrome.

Details

Create a function called is_palindrome(text) in a file called palindrome.py. The function should return True if the input text is a palindrome and False otherwise.

Make sure your code follows the course's code conventions.

Sample Test Cases

Function Parameters Expected Output
'radar' True
'racecar' True
'race car' False
'Hannah' False

Submission

Submissions for post labs are to be done via the inquire system. Go to http://inquire.roanoke.edu/ You should see a section for post labs. Submit your .py file to the appropriate post lab location.

Post labs are to be done individually. Sharing files between students is not allowed. Doing so is an Academic Integrity violation, and will be treated as such.