title: Why won't this return true if the word is palindrome?
body: <p>I want the program to return true if the word is a palindrome and false if it isn't. I also have to use a for loop to print the word backwards so i don't want that to change.
  This is the function:
  ///</p>
  <pre><code>def isPalindrome(s):
      for i in s[::-1]:
          print(i) 
      if i == s:
          return True
      else:
          return False
  
  print(isPalindrome('hannah'))
  print(isPalindrome('ben'))
  </code></pre>
  <p>///
  And this is what it prints:
  ///</p>
  <pre><code>h
  a
  n
  n
  a
  h
  False
  n
  e
  b
  False
  </code></pre>
  <p>///</p>