input: Write a python function to check if a string is a palindrome.
  assert is_palindrome("malayalam")==True
  assert is_palindrome("hello")==False
  assert is_palindrome("racecar")==True
output: def is_palindrome(s):
      return s == s[::-1]