nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · edit-21 year agotrashmessage-square43fedilinkarrow-up1597arrow-down16
arrow-up1591arrow-down1message-squaretrashnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · edit-21 year agomessage-square43fedilink
minus-squareenkers@sh.itjust.workslinkfedilinkarrow-up29·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-up9·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