<filename>valid-palindrome/solution.py
class Solution:
    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        s = ''.join(c for c in s if c.isalnum()).lower()
        return s == s[::-1]

<filename>valid-palindrome/solution.py
class Solution:
    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        s = ''.join(c for c in s if c.isalnum()).lower()
        return s == s[::-1]

:type s: str         :rtype: bool