input: 
  from typing import List
  
  def is_palindrome(s: List[str]) -> bool:
      """This function returns True if the string s is a palindrome and False if it isn't.
      Example:
      >>> is_palindrome("racecar")
      True
      >>> is_palindrome("hello")
      False
      """
      return s == s[::-1]  # Checks if s is the same as its reverse.
  
output:     for i in range(len(s) // 2):
          if s[i] != s[-(i + 1)]:
              return False
      return True