1
def isPalindrome(self, s: str) -> bool:
        res = [i.lower() for i in s if i.isalnum()]
        return res==res[::-1]

I have seen this on a leetcode solution. What is this technique in this portion [i.lower() for i in s if i.isalnum()] called?

0 Answers0