@[email protected] to [email protected]English • 9 hours agoRulelemmy.blahaj.zoneimagemessage-square31fedilinkarrow-up1215arrow-down13
arrow-up1212arrow-down1imageRulelemmy.blahaj.zone@[email protected] to [email protected]English • 9 hours agomessage-square31fedilink
minus-square@[email protected]linkfedilinkEnglish41•8 hours agoreturn true is correct around half of the time
minus-square@aliserlink1•1 hour agoreturn Math.random() > 0.5 would also be correct about half the time
minus-square@[email protected]linkfedilink15•6 hours agoassert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True All checks pass. LGTM
return true
is correct around half of the time
return Math.random() > 0.5
would also be correct about half the time
assert IsEven(2) == True assert IsEven(4) == True assert IsEven(6) == True
All checks pass. LGTM