• kryptonianCodeMonkey@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    12 days ago
    def is_even(num):
        if num == 1:
            return False
        if num == 2:
            return True
        raise ValueError(f'Value of {num} out of range. Literally impossible to tell if it is even.')