Exercise 3: Palindrome

Drag and drop the code below to write a function palindrome(string), which should return True if the input string is a palindrome and False otherwise.

You must use recursion to write this block. Loops and list comprehension are not allowed.

You can reorder the blocks and drag them to different indentation levels as you wish. You may not need to use all of the provided lines. Also, note that we have not provided an "else" line of code, but you may find it useful to think about using one (and then just omit it from your solution below).

Get feedback Export

Before you leave this page, be sure to check your answer for correctness by clicking "Get feedback" above and export your code using the "Export button." After you have exported your code, make sure you copy and paste it into the starter code file under excercise 3 def palindrome