Write a function that takes a list of strings and returns a new list containing only the strings that are palindromes. A palindrome is a word that reads the same backward as forward.
Example:
Input:
["racecar", "python", "level", "world"]
Output:
["racecar", "level"]
Make sure you return your solution, don't print!
AI
Bot
Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.