Comment on I wish

affiliate@lemmy.world ⁨1⁩ ⁨year⁩ ago

amateurs

def is_even(n: int):
    if n ==0:
        return True
    elif n < 0:
        return is_even(-n)
    else:
        return not is_even(n-1)

source
Sort:hotnewtop