2108. Find First Palindromic String in the Array Updated: 2024-03-12 1 min read Algorithms , LeetCode On This PageLeetCode problem 2108class Solution: def firstPalindrome(self, words: List[str]) -> str: return next((w for w in words if w == w[::-1]), "")