Palindromes. A palindrome is a word that is the same backward as forward. The word rotor is an example of a palindrome.
(a) Write a function that returns True if two strings are palindromes. (Hints: You can create a list from a string using the
list()function. Lists are handy, because there is areverse()method.)(b) Write a program that uses your function. The program should prompt for the two strings, call the function, and then print results (something other than
TrueorFalse).(c) Some palindrome rules ignore spaces and capitalization, so “Never odd or even” is an acceptable palindrome. Improve your function to ignore spaces and capitalization.
(Hints: Lists have a
remove()method, and strings have alower()method.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.