nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comexternal-linkmessage-square150fedilinkarrow-up1707arrow-down116
arrow-up1691arrow-down1external-linkI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square150fedilink
minus-squareenkers@sh.itjust.workslinkfedilinkarrow-up35·edit-21 year agoThis is your brain on python: def is_even (num): return num in [x*2 for x in range(sys.maxsize / 2)]
minus-squareGoddard Guryon@sopuli.xyzlinkfedilinkarrow-up8·1 year agoThat won’t work tho, you need to make it sys.maxsize//2 to coerce the output into int form
This is your brain on python:
That won’t work tho, you need to make it sys.maxsize//2 to coerce the output into int form