Do one of the following programming problems:
Palindrome
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.
Parse String
Create a function called parse_string(text)
that has a
single string paramter. The function should parse the specified
string by returning a new string containing the all of the
characters between the first occurance of an asterisk and the last
occurance of an asterisk in the specified string. If there is only
one asterisk in the specified string, the function should return all
characters after the asterisk. If there are no asterisks, the
function should return the empty string.