you are viewing a single comment's thread
view the rest of the comments
[–] 19 points 1 year ago* (2 children)
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.')
  • source
  • hideshow 2 child comments