Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 21 days agoInfallible Codelemmy.mlimagemessage-square19linkfedilinkarrow-up12arrow-down10
arrow-up12arrow-down1imageInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 21 days agomessage-square19linkfedilink
minus-squareFunkyStuff [he/him]@hexbear.netlinkfedilinkEnglisharrow-up1·edit-221 days agoThrowback to when someone shared the OG version of this meme to my uni chat, I replied with "Oh you can simply do def is_even(n: int) -> boolean: if n > 0 return not is_even(n - 1) elif n < 0 return not is_even(n + 1) else return True And instead of laughing at the joke the TA in the chat said “When you start getting internships you’ll do n % 2” like I was being serious.
Throwback to when someone shared the OG version of this meme to my uni chat, I replied with "Oh you can simply do
def is_even(n: int) -> boolean: if n > 0 return not is_even(n - 1) elif n < 0 return not is_even(n + 1) else return True
And instead of laughing at the joke the TA in the chat said “When you start getting internships you’ll do
n % 2
” like I was being serious.