CPSC120B
Fundamentals of Computer Science I

Post-lab 20

String Methods

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.

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