input: Write a python function to check if a given text is a palindrome.
  assert is_palindrome("racecar") == True
  assert is_palindrome("python") == False
  assert is_palindrome("level") == True
  assert is_palindrome("openai") == False
output: def is_palindrome(text):
      return text == text[::-1]