Ad
Code
Diff
  • def is_palindrome(s: str) -> bool:
        s = [c for c in s.lower() if c.isalpha()]
        return s == s[::-1]
    • def is_palindrome(s: str) -> bool:
    • pass
    • s = [c for c in s.lower() if c.isalpha()]
    • return s == s[::-1]