Persona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 4 days agoRulelemmy.blahaj.zoneimagemessage-square55fedilinkarrow-up1387arrow-down16
arrow-up1381arrow-down1imageRulelemmy.blahaj.zonePersona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 4 days agomessage-square55fedilink
minus-squareEuphoma@lemmy.mllinkfedilinkEnglisharrow-up78·4 days agoreturn true is correct around half of the time
minus-squareImplyingImplications@lemmy.calinkfedilinkarrow-up40·4 days agoassert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True All checks pass. LGTM
minus-squarealiser@lemmy.worldlinkfedilinkarrow-up18·3 days agoreturn Math.random() > 0.5 would also be correct about half the time
minus-squaredeo@lemmy.dbzer0.comlinkfedilinkarrow-up2arrow-down1·3 days agoWouldn’t that only be correct about 25% of the time?
return true
is correct around half of the time
assert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True
All checks pass. LGTM
would also be correct about half the time
Wouldn’t that only be correct about 25% of the time?