input: 
  def is_palindrome(s: str) -> bool:
      """ Check if the given string is a palindrome (reads the same forwards and backwards).
      >>> is_palindrome("racecar")
      True
      >>> is_palindrome("hello")
      False
      >>> is_palindrome("madam")
      True
      """
      return s == s[::-1]
  
output:     return s == s[::-1]