Hello,
I am knew here and not sure how to ask but I guess I will ask it here and if this is not where it goes feel free to tell me where to post it.....THANKS
I am trying to write a recursive function Python program that will ask the user to input a phrase. It is to remove the first or last character if it is puncutation and then tell the user if their phrase is a palindrome or not.
I am not sure even where to begin....I would I assume that we would prompt the user with:
phrase = raw_input("Enter a phrase: ")
then try to compare the first letter to the last letter and see if they are the same, if they are then the entire string is a palindrome if everything between those letters is a palindrome. But as I stated earlier we have to exclude the punctuation (not sure how).
I would also assume that we would need to put everything into lowercase with somthing like string.lower(phrase) MAYBE??
I am certainly not trying to get a freebie for homework but not too sure in what order to put the steps and the correct python coding for everything.
THANKS---Steve