Objective
Create a Python program with a recursive function that checks whether a text is a palindrome. A palindrome is a text that reads the same backwards and forwards, like the word *radar*.
Instructions
- Ask the user for a text.
- Implement a recursive function called
is_palindromethat receives the text and checks whether it is a palindrome. It returnsTrueif it is andFalseotherwise. - Print the value returned by the function.
radar
True
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise