Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 6 months agoInfallible Codelemmy.mlimagemessage-square27linkfedilinkarrow-up16arrow-down10
arrow-up16arrow-down1imageInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 6 months agomessage-square27linkfedilink
minus-squarekryptonianCodeMonkey@lemmy.worldlinkfedilinkarrow-up1·edit-26 months agodef 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.')
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.')