Persona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 21日前Rulelemmy.blahaj.zoneimagemessage-square57fedilinkarrow-up1392arrow-down16
arrow-up1386arrow-down1imageRulelemmy.blahaj.zonePersona3Reload@lemmy.blahaj.zone to 196@lemmy.blahaj.zoneEnglish · 21日前message-square57fedilink
minus-squarebob_lemon@feddit.orglinkfedilinkarrow-up52·edit-221日前import re def is_even(i: int) -> bool: return re.match(r"-?\d*[02468]$", str(i)) is not None
minus-squarelime!@feddit.nulinkfedilinkEnglisharrow-up5·21日前i was gonna suggest the classic re.match(r"^(..)\1*$", "0" * abs(i)) is not None
import re def is_even(i: int) -> bool: return re.match(r"-?\d*[02468]$", str(i)) is not None
Cursed
i was gonna suggest the classic