Ad
Fundamentals
Strings
Data Types
Algorithms
Logic
Code
Diff
  • def palindrome(w): return w.isalpha() and w == w[::-1]
    
    • def palindrome(w): return w == w[::-1]
    • def palindrome(w): return w.isalpha() and w == w[::-1]