title: Checking for palindrome using recursion in PYTHON
body: <p>I am checking if a word is a palindrome, and I cant seem to get my code to respond. I feel like its pretty sound, but apparently I'm missing something. can someone point out what that may be?</p>
  
  <pre><code>def reverse(usrWrd, index):   
      newWord = ""  
  
      if index == len(usrWrd):
          return newWord
      else:
        newWord += usrWrd[index]
        return reverse(usrWrd, index + 1)
  
  def main(): 
      usrWrd = input("please enter a word to check for palindrome-ness:")
  
      result = reverse(usrWrd, 0)
      if result == usrWrd:
          print("That word is a palindrome")
      else:
          print("Sorry,",usrWrd,  "is NOT a palindrome")
  
  main()
  </code></pre>