Ad
Fundamentals
Strings
Data Types
Algorithms
Logic
Code
Diff
  • palindrome = lambda w: str(w)==str(w)[::-1]
    
    • palindrome = lambda w: (s:=str(w))[:(l:=len(s)>>1)] == s[:~l:-1]
    • palindrome = lambda w: str(w)==str(w)[::-1]