Ad
Fundamentals
Code
Diff
  • def is_even(n):
        return n % 2==0
    • def is_even(n):
    • match (n % 2):
    • case (0):
    • return True
    • case (1):
    • return False
    • return n % 2==0