Ad
Fundamentals
Strings
Data Types
Algorithms
Logic
  • Polymorphism for int and float types (positive)
Code
Diff
  • palindrome = lambda w: str(w)[::-1] == str(w)
    
    • palindrome = lambda w: w[::-1] == w
    • palindrome = lambda w: str(w)[::-1] == str(w)
Code
Diff
  • is_even = lambda x: not x % 2
    
    • is_even = lambda x: 1 + x&1
    • is_even = lambda x: not x % 2