you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 1 year ago* (last edited 1 year ago) (1 child)
def is_even(num):
    num = num & 1
    if num == 0:
        return False
    if num == 1:
        return True
    raise ValueError(f'what the fuck')

EDIT: forgor to edit the numbers

  • source
  • parent
  • hideshow 1 child comment