title: How can I return a recursive call to a function?
body: <p><strong>The task:</strong></p>
  
  <p>Write a recursive function called is_palindrome that takes a string named word as its parameter and returns True if word has length less than or equal to 1. If the length of word is greater than 1, the function should return False if the first character of word is different to the last character of word. If the length of word is greater than 1, and the first and last characters of the string are identical, the function should return the result of is_palindrome() with the parameter of word with its first and last characters removed (e.g. is_palindrome("anna") should return the result of is_palindrome("nn")).</p>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>def is_palindrome(word):
      if len(word) &lt;= 1:
          return True
      if len(word) &gt; 1:
          if word[0] != word[len(word) - 1]:
              return False
          elif word[0] == word[len(word) - 1]:
              return word[1:(len(word) - 1)]
  
  possible_palindrome = input("Enter a word/phrase to check: ")
  if is_palindrome(possible_palindrome):
      print(possible_palindrome, "is a palindrome")
  else:
      print(possible_palindrome, "is not a palindrome")
  </code></pre>
  
  <p><strong>Feedback from grading:</strong></p>
  
  <p>You need to return a recursive call to is_palindrome</p>