Ad
Code
Diff
  • def is_palindrome(s: str) -> bool:
        return s.lower().replace(' ','') == s.lower()[::-1].replace(' ','')
    • def is_palindrome(s: str) -> bool:
    • pass
    • return s.lower().replace(' ','') == s.lower()[::-1].replace(' ','')