Question: Write a recursive function called is_palindrome (string) that takes a string parameter and checks if it is a palindrome ignoring the spaces, if any,
Write a recursive function called is_palindrome (string) that takes a string parameter and checks if it is a palindrome ignoring the spaces, if any, and returns True/False. Tips: you can modify the code for single-word palindromes shown in class. Sample output: >>> print (is_palindrome ("never odd or even")) True >>> print (is_palindrome ("step on no pets")) True >>> print (is_palindrome ("is palindrome")) False Write a recursive function called is_palindrome (string) that takes a string parameter and checks if it is a palindrome ignoring the spaces, if any, and returns True/False. Tips: you can modify the code for single-word palindromes shown in class. Sample output: >>>print(is_palindrome ("never odd or even")) >>>print(is_palindrome("step on no pets")) True >>> print (is_palindrome("is palindrome")) False True
Step by Step Solution
There are 3 Steps involved in it
def ispalindromestring Convert the s... View full answer
Get step-by-step solutions from verified subject matter experts
