@[email protected] to [email protected]English • 10 hours agoRulelemmy.blahaj.zoneimagemessage-square31fedilinkarrow-up1219arrow-down13
arrow-up1216arrow-down1imageRulelemmy.blahaj.zone@[email protected] to [email protected]English • 10 hours agomessage-square31fedilink
minus-square@[email protected]linkfedilink31•edit-29 hours agoimport re def is_even(i: int) -> bool: return re.match(r"-?\d*[02468]$", str(i)) is not None
import re def is_even(i: int) -> bool: return re.match(r"-?\d*[02468]$", str(i)) is not None
Cursed