input: Write a python function to filter palindromes from a list of strings.
  assert filter_palindromes(["apple", "eye", "ball", "abba"])==["eye", "abba"]
  assert filter_palindromes(["noon", "civic", "deed", "level", "world"])==["noon", "civic", "deed", "level"]
  assert filter_palindromes(["racecar", "madam", "step", "on", "no", "pets"])==["racecar", "madam", "step", "on", "no", "pets"]
output: def filter_palindromes(words):
      return [word for word in words if word == word[::-1]]