Ad
Code
Diff
  • is_even = lambda a: a % 2==0
    • is_even = lambda a: not a%2
    • is_even = lambda a: a % 2==0
Fundamentals
Strings
Data Types
Algorithms
Logic
Code
Diff
  • palindrome = lambda q: q==q[::-1]
    
    • def palindrome(w): return w.isalpha() and w == w[::-1]
    • palindrome = lambda q: q==q[::-1]